Kwargs: assert functions (#6406)
Closes https://github.com/KittyCAD/modeling-app/issues/6408
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user