diff options
author | William Carroll <wpcarro@gmail.com> | 2022-08-29T19·57-0700 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-09-07T20·56+0000 |
commit | b3097de75d50a018665823e28e0ee4d7a3878160 (patch) | |
tree | 2aac78701beec7b02b4e7d8537922bede2e5f335 /tvix/eval/src/tests/tvix_tests/eval-okay-builtins-add.nix | |
parent | 55d21a1389504d6d9872144077196bac9ee17feb (diff) |
feat(tvix/eval): Support builtins.{add,sub} r/4738
First pass at supporting `builtins` for tvix. The following tests appear to be WAI: ```shell $ cd tvix/eval $ cargo build $ cargo test ``` Change-Id: I27cce23d503b17a886d1109e285e8b4be4264977 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6405 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-builtins-add.nix')
-rw-r--r-- | tvix/eval/src/tests/tvix_tests/eval-okay-builtins-add.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-add.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-add.nix new file mode 100644 index 000000000000..6b2a29d7982c --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-add.nix @@ -0,0 +1,7 @@ +[ + (builtins.add 7 11) + (builtins.add 7.9 11) + (builtins.add 7 11.9) + (builtins.add 7.2 11.9) + (builtins.add 7.1 11.9) +] |