diff --git a/src/unittest.scad b/src/unittest.scad index 38efbe11..8f469020 100644 --- a/src/unittest.scad +++ b/src/unittest.scad @@ -88,5 +88,13 @@ module assertEqual(expected, actual) { ", but: ", actual) ); } - +} + +module assertTrue(truth) { + if(!truth) { + fail( + "Truth", + "expected: true, but: false" + ); + } } \ No newline at end of file