Get rid of this test

need to rethink how if-expressions should work
This commit is contained in:
greg 2019-10-05 16:41:51 -07:00
parent 904d5c4431
commit a48bb61eb3

View File

@ -340,24 +340,6 @@ fn parsing_bindings() {
));
}
#[test]
fn parsing_if_expressions() {
parse_test_wrap_ast! {
"if x == 10 { 1 } else { 2 }",
exst!(IfExpression {
discriminator: bx! {
Discriminator::Simple(ex!(Call { f: bx!(ex!(val!("a"))), arguments: vec![]}))
},
body: bx! {
IfExpressionBody::SimpleConditional(
vec![exst!(Call { f: bx!(ex!(val!("b"))), arguments: vec![]}), exst!(Call { f: bx!(ex!(val!("c"))), arguments: vec![] })],
None
)
}
})
}
}
#[test]
fn parsing_block_expressions() {
parse_test_wrap_ast! {