19 lines
342 B
Rust
19 lines
342 B
Rust
|
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")));
|
||
|
}
|