From 8e06075442ade74a0c23afad235742c41b3ceac8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 27 Oct 2020 23:26:38 +0900 Subject: Revert "Fixed typo" This reverts commit 379a5ca539af0e954b1cdf63b9365ad208b9c7f3. This "typo" is intentional to test the transposition detection by did_you_mean. --- test/did_you_mean/tree_spell/test_change_word.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/did_you_mean/tree_spell/test_change_word.rb b/test/did_you_mean/tree_spell/test_change_word.rb index f234f45b31..613e11b869 100644 --- a/test/did_you_mean/tree_spell/test_change_word.rb +++ b/test/did_you_mean/tree_spell/test_change_word.rb @@ -32,7 +32,7 @@ class ChangeWordTest < Test::Unit::TestCase assert_match @cw.transposition(n - 1, +1), 'spec/services/anything_spce' assert_match @cw.transposition(4, +1), 'specs/ervices/anything_spec' assert_match @cw.transposition(4, -1), 'spe/cservices/anything_spec' - assert_match @cw.transposition(21, -1), 'spec/services/anything_spec' + assert_match @cw.transposition(21, -1), 'spec/services/anythign_spec' assert_match @cw.transposition(21, +1), 'spec/services/anythin_gspec' end end -- cgit v1.2.3