exercism/d/hello-world/source/hello_world.d

14 lines
270 B
D
Raw Normal View History

2017-08-15 15:04:10 +00:00
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, !");
}
}