From 0a5a989a966825c3bee7da4ff305dccb0bf0ffff Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Thu, 16 May 2024 20:24:52 +0900 Subject: [PATCH] test: reduce deprecation warnings --- test/tests.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tests.rb b/test/tests.rb index a5a4277..a48dded 100644 --- a/test/tests.rb +++ b/test/tests.rb @@ -122,7 +122,7 @@ def assert_distance score, str1, str2, **options end def assert_encoding str1, str2, encoding, **options - assert_distance JaroWinkler.distance(str1, str2), str1.encode(encoding), str2.encode(encoding) + assert_similarity JaroWinkler.distance(str1, str2), str1.encode(encoding), str2.encode(encoding) end def assert_jaro_distance score, str1, str2, **options