aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang/eval-okay-floor-ceil.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/lang/eval-okay-floor-ceil.nix')
-rw-r--r--tests/functional/lang/eval-okay-floor-ceil.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/functional/lang/eval-okay-floor-ceil.nix b/tests/functional/lang/eval-okay-floor-ceil.nix
new file mode 100644
index 000000000..d76a0d86e
--- /dev/null
+++ b/tests/functional/lang/eval-okay-floor-ceil.nix
@@ -0,0 +1,9 @@
+with import ./lib.nix;
+
+let
+ n1 = builtins.floor 23.5;
+ n2 = builtins.ceil 23.5;
+ n3 = builtins.floor 23;
+ n4 = builtins.ceil 23;
+in
+ builtins.concatStringsSep ";" (map toString [ n1 n2 n3 n4 ])