summaryrefslogtreecommitdiff
path: root/rust/hello-world/tests/hello-world.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/hello-world/tests/hello-world.rs')
-rw-r--r--rust/hello-world/tests/hello-world.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/hello-world/tests/hello-world.rs b/rust/hello-world/tests/hello-world.rs
new file mode 100644
index 0000000..c0d9536
--- /dev/null
+++ b/rust/hello-world/tests/hello-world.rs
@@ -0,0 +1,6 @@
+use hello_world;
+
+#[test]
+fn test_hello_world() {
+ assert_eq!("Hello, World!", hello_world::hello());
+}