Skip to content

Commit

Permalink
fixed unit tests under Windows (CR-LF)
Browse files Browse the repository at this point in the history
  • Loading branch information
juerg committed Jan 14, 2024
1 parent bf2ff48 commit 34f9c01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/test/java/com/github/jlangch/venice/ClosureTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/
package com.github.jlangch.venice;

import static com.github.jlangch.venice.impl.util.StringUtil.to_lf;
import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -80,7 +81,7 @@ public void test_closure_2() {
"[:counter 1 :foo c :bar x]\n" +
"[:counter 2 :foo c :bar y]\n" +
"[:counter 3 :foo c :bar z]\n",
venice.eval(script));
to_lf(venice.eval(script)));
}

}
3 changes: 2 additions & 1 deletion src/test/java/com/github/jlangch/venice/VeniceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/
package com.github.jlangch.venice;

import static com.github.jlangch.venice.impl.util.StringUtil.to_lf;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
Expand Down Expand Up @@ -272,7 +273,7 @@ public void test_CapturingPrintStream_PreserveResult() {
Parameters.of("*out*", ps));

assertEquals(100L, result);
assertEquals("[1 2]\n", ps.getOutput());
assertEquals("[1 2]\n", to_lf(ps.getOutput()));
}
}

Expand Down

0 comments on commit 34f9c01

Please sign in to comment.