From 97640c1b9bfe65b53c475a8673e97ae88598fc39 Mon Sep 17 00:00:00 2001 From: Jeff Date: Fri, 16 Feb 2024 13:31:35 -0500 Subject: [PATCH] Fix test --- tests/functions.rs | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/tests/functions.rs b/tests/functions.rs index f261c82..4bd427e 100644 --- a/tests/functions.rs +++ b/tests/functions.rs @@ -109,26 +109,7 @@ fn function_context_captures_structure_definitions() { bob() " ), - Ok(Value::Map(map.clone())) - ); - - assert_eq!( - interpret( - " - bob = () { - new User { - name = 'bob' - } - } - - User = struct { - name - } - - bob() - " - ), - Ok(Value::Map(map)) + Ok(Value::Struct(StructInstance::new("User".into(), map))) ); }