diff options
author | Tim Sears <tim@timsears.com> | 2018-04-28T22·34-0700 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2018-04-29T19·03-0700 |
commit | 9a714f75af89da5e090f9d3b402b7266d5ec0144 (patch) | |
tree | 325971a7efb35eaafe1d8e57d271e5bacc1ee1f2 | |
parent | 8e7d77d4944d7903f64dc8d61a43f81221cd4aea (diff) |
add tests for builtins.add
-rw-r--r-- | tests/lang/eval-okay-builtins-add.exp | 1 | ||||
-rw-r--r-- | tests/lang/eval-okay-builtins-add.nix | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-builtins-add.exp b/tests/lang/eval-okay-builtins-add.exp new file mode 100644 index 000000000000..b55e8bce0309 --- /dev/null +++ b/tests/lang/eval-okay-builtins-add.exp @@ -0,0 +1 @@ +[ 5 4 "int" "tt" "float" 4.0 ] diff --git a/tests/lang/eval-okay-builtins-add.nix b/tests/lang/eval-okay-builtins-add.nix new file mode 100644 index 000000000000..c841816222a5 --- /dev/null +++ b/tests/lang/eval-okay-builtins-add.nix @@ -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) +] |