mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
format
This commit is contained in:
parent
754521c4c3
commit
ccd302cbe9
3 changed files with 2 additions and 7 deletions
|
@ -8,7 +8,6 @@ extern crate inkwell;
|
|||
extern crate libc;
|
||||
extern crate roc_gen;
|
||||
|
||||
|
||||
use roc_std::RocStr;
|
||||
|
||||
#[macro_use]
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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>")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue