diff options
author | William Carroll <wpcarro@gmail.com> | 2022-08-30T00·31-0700 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-09-07T20·56+0000 |
commit | 15e2bc54f1beab0f99a7d7199af92a3139052302 (patch) | |
tree | 7135003cb5cd5901723ff77e248a97838141d43c /tvix/eval/src/tests/tvix_tests/eval-okay-builtins-div.nix | |
parent | b3097de75d50a018665823e28e0ee4d7a3878160 (diff) |
feat(tvix/eval): Support builtins.{mul,div} r/4739
Multiplication and division :) Change-Id: I79e76f3b55b7e9b8d1eb09b3d9741140b4d75742 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6406 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-builtins-div.nix')
-rw-r--r-- | tvix/eval/src/tests/tvix_tests/eval-okay-builtins-div.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-div.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-div.nix new file mode 100644 index 000000000000..622ce889daa9 --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-div.nix @@ -0,0 +1,10 @@ +[ + (builtins.div 9 3) + (builtins.div 7 1) + (builtins.div 3 9) + (builtins.div 4 4) + (builtins.div 1 2) + (builtins.div 1.0 2) + (builtins.div 1 2.0) + (builtins.div 1.0 2.0) +] |