mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-22 23:58:39 +02:00
Merge pull request #91 from sudonym1/patch-1
Correct compilation error in unit-tests.md
This commit is contained in:
commit
a62c695fe3
@ -17,12 +17,12 @@ fn test_empty() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_single_word() {
|
fn test_single_word() {
|
||||||
assert_eq!(first_word("Hello"), Some("Hello"));
|
assert_eq!(first_word("Hello"), "Hello");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_multiple_words() {
|
fn test_multiple_words() {
|
||||||
assert_eq!(first_word("Hello World"), Some("Hello"));
|
assert_eq!(first_word("Hello World"), "Hello");
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user