Low level unit test library in druntime

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 2 12:26:41 PDT 2016


On 2016-09-01 14:02, Dicebot wrote:

> What would be different? List of unit test blocks available in the program?

How the unit tests are written and collected.

unittest { assert(true); }

class FooTest : Test
{
     void testFoo() { assert(true); }
}

describe("foo", {
     it("does something", {
         assert(true);
     });
});

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list