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))) ); }