restore test, add walrus

This commit is contained in:
aps 2023-02-14 15:25:01 -05:00
parent b66ef11dac
commit 72e36997ca
2 changed files with 4 additions and 14 deletions

View File

@ -1,17 +1,6 @@
## Function Tests.
#a := 1
#_b = (1, 2)
#(d := 4) + 6
#(D := 4)
#assert D == 4
#x = D + 1
x = (a := 3,4)
y = (a := 3)
print(y)
#assert False # (D := 4)==4
# b = (d := 4) + (c := 4)
# c = (d := 2) + 1
# b = (x := a + 1) + 2
def f1():
return 'f1'
assert f1() == 'f1'

View File

@ -3,4 +3,5 @@ assert ( y := 1) + 2 == 3
a = (y := 4) + 5
assert a == 9
assert y == 4
assert y == 4