diff options
author | Florian Klink <flokli@flokli.de> | 2024-05-26T18·28+0200 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2024-05-30T16·18+0000 |
commit | baa39d9d098fa5a1af58c79483f2701a68139df1 (patch) | |
tree | 184f0dd1d8d3999a490214277336b69fee3299f8 /tvix/eval/src/tests | |
parent | c83f2e765c7cefe325cd00ee5dca25969889491a (diff) |
fix(tvix/eval/tests/one_offs): test_source_builtin can be pure r/8182
`Evaluation::new_impure()` would require the test to be impure, but there's nothing in this test specifically requiring us to make use of impure features. Change-Id: Idb24981195d1a94f51053ae04403eb5f0e27f3d9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11725 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: Connor Brewster <cbrewster@hey.com>
Diffstat (limited to 'tvix/eval/src/tests')
-rw-r--r-- | tvix/eval/src/tests/one_offs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/tests/one_offs.rs b/tvix/eval/src/tests/one_offs.rs index 565d1dd48f77..21e9144baf64 100644 --- a/tvix/eval/src/tests/one_offs.rs +++ b/tvix/eval/src/tests/one_offs.rs @@ -5,7 +5,7 @@ fn test_source_builtin() { // Test an evaluation with a source-only builtin. The test ensures // that the artificially constructed thunking is correct. - let mut eval = Evaluation::new_impure(); + let mut eval = Evaluation::new_pure(); eval.src_builtins.push(("testSourceBuiltin", "42")); let result = eval.evaluate("builtins.testSourceBuiltin", None); |