1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-20 05:21:38 +02:00

added assertTrue

This commit is contained in:
Justin Lin
2017-05-26 10:13:58 +08:00
parent 124fa40165
commit 5327db1207

View File

@@ -88,5 +88,13 @@ module assertEqual(expected, actual) {
", but: ", actual)
);
}
}
module assertTrue(truth) {
if(!truth) {
fail(
"Truth",
"expected: true, but: false"
);
}
}