mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-20 21:41:41 +02:00
added assertTrue
This commit is contained in:
@@ -88,5 +88,13 @@ module assertEqual(expected, actual) {
|
|||||||
", but: ", actual)
|
", but: ", actual)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module assertTrue(truth) {
|
||||||
|
if(!truth) {
|
||||||
|
fail(
|
||||||
|
"Truth",
|
||||||
|
"expected: true, but: false"
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user