Kwargs: assert functions (#6406)
Closes https://github.com/KittyCAD/modeling-app/issues/6408
This commit is contained in:
@ -4,7 +4,7 @@ i = if ii {
|
||||
} else {
|
||||
2
|
||||
}
|
||||
assert(i == 1, "and has higher precedence than or")
|
||||
assert(i, isEqualTo = 1, error = "and has higher precedence than or")
|
||||
|
||||
jj = false | true & !false | false & true
|
||||
j = if jj {
|
||||
@ -12,4 +12,4 @@ j = if jj {
|
||||
} else {
|
||||
2
|
||||
}
|
||||
assert(j == 1, "multiple logical operators")
|
||||
assert(j, isEqualTo = 1, error = "multiple logical operators")
|
||||
|
Reference in New Issue
Block a user