2017-08-15
This commit is contained in:
13
d/hello-world/source/hello_world.d
Normal file
13
d/hello-world/source/hello_world.d
Normal file
@@ -0,0 +1,13 @@
|
||||
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, !");
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user