sync from Atlas

This commit is contained in:
Luciano Ramalho committed 2021-10-12 22:37:28 -03:00
1 parent 43f1bf23b3
commit 6fb0832c40
7 files changed
+31 -34

No files matched your search

+1 -1
View File
@@ -146,7 +146,7 @@ def test_factorial():
gcd_src = """
(define (mod m n)
(- m (* n (// m n))))
(- m (* n (quotient m n))))
(define (gcd m n)
(if (= n 0)
m
+1 -1
View File
@@ -83,7 +83,7 @@ def standard_env() -> Environment:
'-': op.sub,
'*': op.mul,
'/': op.truediv,
'//': op.floordiv,
'quotient': op.floordiv,
'>': op.gt,
'<': op.lt,
'>=': op.ge,
+2 -2
View File
@@ -147,7 +147,7 @@ def test_factorial():
gcd_src = """
(define (mod m n)
(- m (* n (// m n))))
(- m (* n (quotient m n))))
(define (gcd m n)
(if (= n 0)
m
@@ -255,4 +255,4 @@ closure_averager_src = """
def test_closure_averager():
got = run(closure_averager_src)
assert got == 12.0
# end::RUN_AVERAGER[]
# end::RUN_AVERAGER[]
+1 -1
View File
@@ -80,7 +80,7 @@ def standard_env() -> Environment:
'-': op.sub,
'*': op.mul,
'/': op.truediv,
'//': op.floordiv,
'quotient': op.floordiv,
'>': op.gt,
'<': op.lt,
'>=': op.ge,