mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
add tests for builtins.add
This commit is contained in:
parent
8e7d77d494
commit
9a714f75af
2 changed files with 9 additions and 0 deletions
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