exercism/dlang/hello-world/hello_test.d

15 lines
282 B
D
Raw Normal View History

2016-08-15 19:08:39 +00:00
module helloworld_test;
import helloworld;
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.");
}