exercism/dlang/hello-world/hello_world.d

13 lines
262 B
D
Raw Normal View History

2016-09-03 14:53:54 +00:00
module helloworld_test;
import std.stdio;
void main() {
assert(hello() == "Hello, World!");
assert(hello("Alice") == "Hello, Alice!");
assert(hello("Bob") == "Hello, Bob!");
assert(hello("") == "Hello, !");
writeln("All tests passed.");
}