Skip to content

Commit

Permalink
update tests after bumping vi-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed Jun 3, 2024
1 parent 6fcd0a1 commit b51adcc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions gokien/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ fn test_vi_whole_word() {
// (intput, expected)
#[rustfmt::skip]
let cases = [
("ww", "ww"),
("www", "www"),
("wwawww", "wwawww"),
("waf", "ừa"),
("wwaos", "wwaos"),
("wwwwwa", "wwwwwa"),
("wwww", "wwww")
("ww", "w"),
("www", "ww"),
("wwawww", "wawww"),
("waf", "ừa"),
("wwaos", "waos"),
("wwwwwa", "wwwwa"),
("wwww", "www")
];
for (word, expected) in cases.into_iter() {
transform_buffer(&vi::TELEX, word.chars(), &mut out);
Expand All @@ -37,8 +37,8 @@ fn process_keys() {
#[rustfmt::skip]
let cases = [
("nghieengx\n", "nghiễng"),
("wwawww\n", "wwawww"),
("wwww\n", "wwww")
("wwawww\n", "wawww"),
("wwww\n", "www")
];
for (word, expected) in cases.into_iter() {
for ch in word.chars() {
Expand Down

0 comments on commit b51adcc

Please sign in to comment.