Lib/unittest
Hint:
Currently self: TestCase in all functions is only a placeholder, the actual implementation just replies the std/unittest.
Templates
template assertEqual(a, b)
- Source Edit
template assertEqual(self: TestCase; a, b)
- Source Edit
template assertNotEqual(a, b)
- Source Edit
template assertNotEqual(self: TestCase; a, b)
- Source Edit
template assertRaises(self: TestCase; typ: typedesc; cb: typed; va: varargs[untyped])
- Source Edit
template assertRaises(typ: typedesc; cb: typed; va: varargs[untyped])
- Source Edit
template assertTrue(bo)
- Source Edit
template assertTrue(self: TestCase; bo)
- Source Edit