diff --git a/rustemo-compiler/src/grammar/tests/mod.rs b/rustemo-compiler/src/grammar/tests/mod.rs index e8a0e175..0170c739 100644 --- a/rustemo-compiler/src/grammar/tests/mod.rs +++ b/rustemo-compiler/src/grammar/tests/mod.rs @@ -110,7 +110,7 @@ fn terminals_regex() { &["STOP", "foo", "some", "rmatch_term", "more_regex"] ); for (term_name, term_regex) in - [("rmatch_term", r#""[^"]+""#), ("more_regex", r#"\d{2,5}"#)] + [("rmatch_term", r#""[^"]+""#), ("more_regex", r"\d{2,5}")] { assert!(match grammar .symbol_to_term(grammar.term_by_name[term_name]) diff --git a/rustemo-compiler/src/grammar/types/tests.rs b/rustemo-compiler/src/grammar/types/tests.rs index 0b7d42af..75caf56c 100644 --- a/rustemo-compiler/src/grammar/types/tests.rs +++ b/rustemo-compiler/src/grammar/types/tests.rs @@ -5,7 +5,7 @@ use crate::{ #[test] fn symbols_type_deduction() { - let grammar: Grammar = r#" + let grammar: Grammar = r" A: myb=B c=C {MyKind}| B c=C | D {MyD} | Num | Recursive | OneOrMoreRecursive; B: C | EMPTY; @@ -71,7 +71,7 @@ fn symbols_type_deduction() { Ta: 'a'; Tb: 'b'; Tc: 'c'; - "# + " .parse() .unwrap(); diff --git a/rustemo-compiler/src/table/mod.rs b/rustemo-compiler/src/table/mod.rs index 4cd12a0c..1ff47747 100644 --- a/rustemo-compiler/src/table/mod.rs +++ b/rustemo-compiler/src/table/mod.rs @@ -1597,7 +1597,7 @@ mod tests { assert_eq!(per_next_symbol.len(), 4); assert_eq!( per_next_symbol.keys().cloned().collect::>(), - vec![1, 2, 3, 5] + [1, 2, 3, 5] .iter() .map(|v| SymbolIndex(*v)) .collect::>()