Updating the Repo
This commit is contained in:
12
dlang/hello-world/hello_world.d
Normal file
12
dlang/hello-world/hello_world.d
Normal file
@@ -0,0 +1,12 @@
|
||||
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.");
|
||||
}
|
Reference in New Issue
Block a user