Skip to content

Commit

Permalink
grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
Furrior committed May 14, 2024
1 parent e4f1a72 commit b1b7af1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/regexp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ mod tests {

let input = "Сука Гооооооооооооооол в гооооландские ворота.";

let expected_output = "Сука попадание мячем в гооооландские ворота.";
let expected_output = "Сука попадание мячом в гооооландские ворота.";

let replacement = "попадание мячем";
let replacement = "попадание мячом";

for _ in 1..2 {
assert_eq!(
Expand All @@ -74,7 +74,7 @@ mod tests {

let expected_output = "Words replace.";

let replacement = "попадание мячем";
let replacement = "попадание мячом";

for _ in 1..2 {
assert_eq!(
Expand Down
4 changes: 2 additions & 2 deletions tests/dm/regexp.dme
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ var/input = "Сука Гооооооооооооооол в гооооландс
var/pattern = @"\bго+л\b"
var/pattern_flags = "i"
var/incorrect_pattern_flags = "igu"
var/replacement = "попадание мячем"
var/replacement = "попадание мячом"

var/expected_output = "Сука попадание мячем в гооооландские ворота."
var/expected_output = "Сука попадание мячом в гооооландские ворота."
var/expected_error = "Words replace."

/test/proc/test_regexp_replace()
Expand Down

0 comments on commit b1b7af1

Please sign in to comment.