diff options
Diffstat (limited to 'rust/hello-world/tests/hello-world.rs')
| -rw-r--r-- | rust/hello-world/tests/hello-world.rs | 6 |
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 @@ | |||
| 1 | use hello_world; | ||
| 2 | |||
| 3 | #[test] | ||
| 4 | fn test_hello_world() { | ||
| 5 | assert_eq!("Hello, World!", hello_world::hello()); | ||
| 6 | } | ||
