Skip to content

Commit 57a7edf

Browse files
authored
Merge pull request #95 from JohanWiltink/main
allow for chai vagaries
2 parents 0c8c879 + 2567f23 commit 57a7edf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/negabinary-scott/test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const toInt = n => {
1515
else
1616
return unsafeToInt(n);
1717
} ;
18-
LC.configure({ purity: "LetRec", numEncoding: { fromInt, toInt }, verbosity: "Concise" });
18+
LC.configure({ purity: "LetRec", numEncoding: { fromInt, toInt } });
1919

2020
const solutionText = readFileSync(new URL("./solution.lc", import.meta.url), {encoding: "utf8"});
2121
const solution = LC.compile(solutionText);
@@ -27,6 +27,7 @@ const toOrdering = cmp => cmp ("LT") ("EQ") ("GT") ;
2727

2828
describe("NegaBinaryScott", () => {
2929
it("numbers", () => {
30+
LC.configure({ purity: "LetRec", numEncoding: { fromInt, toInt } });
3031
for ( let n=-10; n<=10; n++ )
3132
assert.strictEqual( toInt(fromInt(n)), n, `toInt (fromInt ${ n })` );
3233
});

0 commit comments

Comments
 (0)