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

@ -8,7 +8,7 @@ a = if true {
} else {
5
}
assertEqual(a, 3, 0.001, "the 'if' branch gets returned")
assert(a, isEqualTo = 3, error = "the 'if' branch gets returned")
b = if false {
3
@ -17,7 +17,7 @@ b = if false {
} else {
5
}
assertEqual(b, 4, 0.001, "the 'else if' branch gets returned")
assert(b, isEqualTo = 4, error = "the 'else if' branch gets returned")
c = if false {
3
@ -26,4 +26,4 @@ c = if false {
} else {
5
}
assertEqual(c, 5, 0.001, "the 'else' branch gets returned")
assert(c, isEqualTo = 5, error = "the 'else' branch gets returned")