Closed mziwisky closed 6 years ago
https://tour.dlang.org/tour/en/gems/unittesting has an example of
unittest @safe @nogc nothrow pure { assert(myAbs() == 1); }
but this doesn't compile with dmd -unittest. It looks like the unittest keyword should actually come after the annotations, according to https://dlang.org/spec/unittest.html#attributes_unittest
dmd -unittest
unittest
Thanks! -> https://github.com/dlang-tour/english/pull/243
https://tour.dlang.org/tour/en/gems/unittesting has an example of
but this doesn't compile with
dmd -unittest
. It looks like theunittest
keyword should actually come after the annotations, according to https://dlang.org/spec/unittest.html#attributes_unittest