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:
microproofs
2023-04-12 22:37:33 -04:00
parent 280284d4a1
commit fc1b8738df
3 changed files with 145 additions and 97 deletions

View File

@@ -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
}

View File

@@ -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
}