feat(tvix): implement not-equals (!=) operator
Change-Id: Ic259d6d0cf30553e944682a0d1d2c610df7fe5c2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6141 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
058e77bab2
commit
7d55b776de
9 changed files with 21 additions and 8 deletions
1
tvix/eval/src/tests/tvix_tests/eval-okay-eq-float.exp
Normal file
1
tvix/eval/src/tests/tvix_tests/eval-okay-eq-float.exp
Normal file
|
|
@ -0,0 +1 @@
|
|||
true
|
||||
1
tvix/eval/src/tests/tvix_tests/eval-okay-eq-float.nix
Normal file
1
tvix/eval/src/tests/tvix_tests/eval-okay-eq-float.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
4.2 == 4.2
|
||||
1
tvix/eval/src/tests/tvix_tests/eval-okay-eq-int.exp
Normal file
1
tvix/eval/src/tests/tvix_tests/eval-okay-eq-int.exp
Normal file
|
|
@ -0,0 +1 @@
|
|||
true
|
||||
1
tvix/eval/src/tests/tvix_tests/eval-okay-eq-int.nix
Normal file
1
tvix/eval/src/tests/tvix_tests/eval-okay-eq-int.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
42 == 42
|
||||
1
tvix/eval/src/tests/tvix_tests/eval-okay-ne-int.exp
Normal file
1
tvix/eval/src/tests/tvix_tests/eval-okay-ne-int.exp
Normal file
|
|
@ -0,0 +1 @@
|
|||
true
|
||||
1
tvix/eval/src/tests/tvix_tests/eval-okay-ne-int.nix
Normal file
1
tvix/eval/src/tests/tvix_tests/eval-okay-ne-int.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
42 != 69
|
||||
1
tvix/eval/src/tests/tvix_tests/eval-okay-ne-string.exp
Normal file
1
tvix/eval/src/tests/tvix_tests/eval-okay-ne-string.exp
Normal file
|
|
@ -0,0 +1 @@
|
|||
true
|
||||
1
tvix/eval/src/tests/tvix_tests/eval-okay-ne-string.nix
Normal file
1
tvix/eval/src/tests/tvix_tests/eval-okay-ne-string.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
"this" != "that"
|
||||
Loading…
Add table
Add a link
Reference in a new issue