add tests for builtins.add
This commit is contained in:
parent
8e7d77d494
commit
9a714f75af
1
tests/lang/eval-okay-builtins-add.exp
Normal file
1
tests/lang/eval-okay-builtins-add.exp
Normal file
|
@ -0,0 +1 @@
|
|||
[ 5 4 "int" "tt" "float" 4.0 ]
|
8
tests/lang/eval-okay-builtins-add.nix
Normal file
8
tests/lang/eval-okay-builtins-add.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
[
|
||||
(builtins.add 2 3)
|
||||
(builtins.add 2 2)
|
||||
(builtins.typeOf (builtins.add 2 2))
|
||||
("t" + "t")
|
||||
(builtins.typeOf (builtins.add 2.0 2))
|
||||
(builtins.add 2.0 2)
|
||||
]
|
Loading…
Reference in a new issue