Initial Commit
This commit is contained in:
18
rust/hello-world/tests/hello-world.rs
Normal file
18
rust/hello-world/tests/hello-world.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
extern crate hello_world;
|
||||
|
||||
#[test]
|
||||
fn test_no_name() {
|
||||
assert_eq!("Hello, World!", hello_world::hello(None));
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn test_sample_name() {
|
||||
assert_eq!("Hello, Alice!", hello_world::hello(Some("Alice")));
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn test_other_same_name() {
|
||||
assert_eq!("Hello, Bob!", hello_world::hello(Some("Bob")));
|
||||
}
|
Reference in New Issue
Block a user