fix: fixed how the ir was generating for expect Void, expect Bool, let Void
add some acceptance tests for the various scenarios
This commit is contained in:
@@ -9,3 +9,15 @@ test expect_false() {
|
||||
expect False = val < 0
|
||||
True
|
||||
}
|
||||
|
||||
test expect_data_false() {
|
||||
let val: Data = 0 > 5
|
||||
expect False: Bool = val
|
||||
True
|
||||
}
|
||||
|
||||
test expect_data_true() {
|
||||
let val: Data = 0 < 5
|
||||
expect True: Bool = val
|
||||
True
|
||||
}
|
||||
|
||||
@@ -1,9 +1,32 @@
|
||||
test foo() {
|
||||
let bar =
|
||||
Void
|
||||
test foo1() {
|
||||
let bar: Data = Void
|
||||
|
||||
expect Void =
|
||||
bar
|
||||
let x = True
|
||||
|
||||
True
|
||||
expect Void: Void = bar
|
||||
|
||||
// let Void = bar
|
||||
x
|
||||
}
|
||||
|
||||
test foo2() {
|
||||
let bar = Void
|
||||
|
||||
let x = True
|
||||
|
||||
expect Void: Void = bar
|
||||
|
||||
// let Void = bar
|
||||
x
|
||||
}
|
||||
|
||||
test foo3() {
|
||||
let bar = Void
|
||||
|
||||
let x = True
|
||||
|
||||
let Void: Void = bar
|
||||
|
||||
// let Void = bar
|
||||
x
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user