ruby-changes:63456
From: Nobuyoshi <ko1@a...>
Date: Tue, 27 Oct 2020 23:29:32 +0900 (JST)
Subject: [ruby-changes:63456] 8e06075442 (master): Revert "Fixed typo"
https://git.ruby-lang.org/ruby.git/commit/?id=8e06075442 From 8e06075442ade74a0c23afad235742c41b3ceac8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> 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. 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 f234f45..613e11b 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 https://github.com/ruby/ruby/blob/trunk/test/did_you_mean/tree_spell/test_change_word.rb#L32 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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/