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 @@ a = if aa {
} else {
2
}
assert(a == 1, "left branch of or is true makes the whole expression true")
assert(a, isEqualTo = 1, error = "left branch of or is true makes the whole expression true")
bb = false | true
b = if bb {
@ -12,7 +12,7 @@ b = if bb {
} else {
2
}
assert(b == 1, "right branch of or is true makes the whole expression true")
assert(b, isEqualTo = 1, error = "right branch of or is true makes the whole expression true")
cc = true | true
c = if cc {
@ -20,7 +20,7 @@ c = if cc {
} else {
2
}
assert(c == 1, "both branches of or are true makes the whole expression true")
assert(c, isEqualTo = 1, error = "both branches of or are true makes the whole expression true")
dd = false | false
d = if dd {
@ -28,4 +28,4 @@ d = if dd {
} else {
2
}
assert(d == 2, "both branches of or are false makes the whole expression false")
assert(d, isEqualTo = 2, error = "both branches of or are false makes the whole expression false")