This commit is contained in:
Folkert 2021-01-01 00:54:18 +01:00
parent 754521c4c3
commit ccd302cbe9
3 changed files with 2 additions and 7 deletions

View file

@ -8,7 +8,6 @@ extern crate inkwell;
extern crate libc;
extern crate roc_gen;
use roc_std::RocStr;
#[macro_use]

View file

@ -2700,10 +2700,7 @@ mod test_parse {
// It should occur twice in the debug output - once for the pattern,
// and then again for the lookup.
let occurrences = format!("{:?}", actual)
.split("isTest")
.count()
- 1;
let occurrences = format!("{:?}", actual).split("isTest").count() - 1;
assert_eq!(occurrences, 2);
}

View file

@ -203,8 +203,7 @@ mod test_reporting {
}
fn human_readable(str: &str) -> String {
str
.replace(RED_CODE, "<red>")
str.replace(RED_CODE, "<red>")
.replace(WHITE_CODE, "<white>")
.replace(BLUE_CODE, "<blue>")
.replace(YELLOW_CODE, "<yellow>")