14 lines
270 B
D
14 lines
270 B
D
|
module helloworld_test;
|
||
|
|
||
|
unittest {
|
||
|
const int allTestsEnabled = 0;
|
||
|
|
||
|
assert(hello() == "Hello, World!");
|
||
|
static if (allTestsEnabled) {
|
||
|
assert(hello("Alice") == "Hello, Alice!");
|
||
|
assert(hello("Bob") == "Hello, Bob!");
|
||
|
assert(hello("") == "Hello, !");
|
||
|
}
|
||
|
|
||
|
}
|