Skip to content

Commit fbb88be

Browse files
committed
improve readability of factorial slightly
1 parent b6ea0eb commit fbb88be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/interpreter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ describe('recursion', () => {
338338
"(let "
339339
+ "Factorial "
340340
+ "(lambda f (lambda n (lambda acc "
341-
+ " (if ((== 1) n) acc ( ( (f f) ((- n) 1) ) ((* acc) n) )) "
341+
+ " (if ((<= n) 1) acc ( ( (f f) ((- n) 1) ) ((* acc) n) )) "
342342
+ "))) "
343343
+ "(((Factorial Factorial) 5) 1) "
344344
+ ")")

0 commit comments

Comments
 (0)