Kwargs: assert functions (#6406)

Closes https://github.com/KittyCAD/modeling-app/issues/6408
This commit is contained in:
Adam Chalmers
2025-04-22 12:44:52 -05:00
committed by GitHub
parent 8be36d3d16
commit f99e44e371
73 changed files with 4790 additions and 4034 deletions

View File

@ -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")