Get rid of this test
need to rethink how if-expressions should work
This commit is contained in:
parent
904d5c4431
commit
a48bb61eb3
@ -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! {
|
||||
|
Loading…
Reference in New Issue
Block a user