mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 09:09:31 +00:00
Change equality test to reference comparison for mutable values
This commit is contained in:
parent
b50d783928
commit
bac5cdde01
8 changed files with 315 additions and 87 deletions
|
|
@ -1,19 +1,29 @@
|
|||
:a = [1=2]
|
||||
::a = [1=2]
|
||||
|
||||
0 = {a == [5=2]}
|
||||
0 = {a == [5=2]!constant}
|
||||
|
||||
0 = {a == [1=3]}
|
||||
0 = {a == [1=3]!constant}
|
||||
|
||||
1 = {a == [1=2]}
|
||||
1 = {a == [1=2]!constant}
|
||||
|
||||
:b = [1,2,3]
|
||||
::b = [1,2,3]
|
||||
|
||||
0 = {b == a}
|
||||
|
||||
0 = {b == []}
|
||||
0 = {b == []!constant}
|
||||
|
||||
0 = {b == [3,1,2]}
|
||||
0 = {b == [3,1,2]!constant}
|
||||
|
||||
0 = {b == [1,2,3,4]}
|
||||
0 = {b == [1,2,3,4]!constant}
|
||||
|
||||
1 = {b == [1,2,3]}
|
||||
1 = {b == [1,2,3]!constant}
|
||||
|
||||
:c = [1,2,3]
|
||||
|
||||
0 = {c == b}
|
||||
|
||||
1 = {c!constant == b}
|
||||
|
||||
::d = [1,2,3]
|
||||
|
||||
1 = {d == b}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue