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:
@@ -627,15 +627,6 @@ mod tests {
|
||||
assert_eq!(get_ret_type(&result.unwrap()), StaticType::Int);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_destructuring_record_args() {
|
||||
let env = crate::ast::environment::Environment::new();
|
||||
// ((fn [[x y]] (+ x y)) {:a 5 :b 7}) -> 12
|
||||
let result = env.compile("((fn [[x y]] (+ x y)) {:a 5 :b 7})");
|
||||
assert!(result.is_ok());
|
||||
assert_eq!(get_ret_type(&result.unwrap()), StaticType::Int);
|
||||
}
|
||||
|
||||
fn get_ret_type(node: &TypedNode) -> StaticType {
|
||||
if let StaticType::Function(sig) = &node.ty {
|
||||
sig.ret.clone()
|
||||
|
||||
Reference in New Issue
Block a user