Remove unused record destructuring tests
These tests were for record destructuring, which has been removed. The code for record destructuring was also removed from the type checker and types modules.
This commit is contained in:
@@ -301,16 +301,6 @@ mod tests {
|
||||
"Nested tuple should be folded to 30. Dump:\n{}",
|
||||
dump_tuple
|
||||
);
|
||||
|
||||
// 2. Record-to-Tuple
|
||||
let source_record = "((fn [[x y]] (+ x y)) {:a 5 :b 7})";
|
||||
assert_eq!(format!("{}", env.run_script(source_record).unwrap()), "12");
|
||||
let dump_record = env.dump_ast(source_record).unwrap();
|
||||
assert!(
|
||||
dump_record.contains("Constant: 12"),
|
||||
"Record-to-Tuple destructuring should be folded to 12. Dump:\n{}",
|
||||
dump_record
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user