about summary refs log tree commit diff
path: root/tvix/eval/tests
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-12-08T21·31+0300
committerclbot <clbot@tvl.fyi>2022-12-21T13·09+0000
commit1138fbcaad3a7d69f707c4f47d84f314bc95d45a (patch)
treeee2d1852e47b35e5b150ec8cc19a68c388d15b80 /tvix/eval/tests
parentd101151fc58c9ec8bbc6e39c6c29ebfc7f538473 (diff)
refactor(tvix/eval): use new public API in test code r/5439
This removes internal uses of the previous crate::eval module, which
is being removed.

Change-Id: I5fb3c53460a9c5381853d0258f9ed074ab23c630
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7543
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'tvix/eval/tests')
-rw-r--r--tvix/eval/tests/nix_oracle.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tvix/eval/tests/nix_oracle.rs b/tvix/eval/tests/nix_oracle.rs
index 34ed50351053..4910a18bec08 100644
--- a/tvix/eval/tests/nix_oracle.rs
+++ b/tvix/eval/tests/nix_oracle.rs
@@ -40,8 +40,10 @@ fn nix_eval(expr: &str) -> String {
 #[track_caller]
 fn compare_eval(expr: &str) {
     let nix_result = nix_eval(expr);
-    let tvix_result = tvix_eval::interpret(expr, None, Default::default())
-        .unwrap()
+    let tvix_result = tvix_eval::Evaluation::new(expr, None)
+        .evaluate()
+        .value
+        .expect("tvix evaluation should succeed")
         .to_string();
 
     assert_eq!(nix_result.trim(), tvix_result);