From 9a714f75af89da5e090f9d3b402b7266d5ec0144 Mon Sep 17 00:00:00 2001 From: Tim Sears Date: Sat, 28 Apr 2018 15:34:37 -0700 Subject: add tests for builtins.add --- tests/lang/eval-okay-builtins-add.exp | 1 + tests/lang/eval-okay-builtins-add.nix | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 tests/lang/eval-okay-builtins-add.exp create mode 100644 tests/lang/eval-okay-builtins-add.nix (limited to 'tests/lang') 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) +] -- cgit 1.4.1