sync from Atlas

This commit is contained in:
Luciano Ramalho
2021-10-12 22:37:28 -03:00
parent 43f1bf23b3
commit 6fb0832c40
7 changed files with 31 additions and 34 deletions

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

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,

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[]

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,