exercism/rust/hello-world/tests/hello-world.rs

19 lines
342 B
Rust
Raw Normal View History

2016-08-13 23:20:14 +00:00
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")));
}