From 84dfb9fe9784452599252979f8295e4a178bfe0f Mon Sep 17 00:00:00 2001 From: Miwa / Ensan Date: Sat, 28 Sep 2024 17:35:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20test=E3=82=B3=E3=83=BC=E3=83=89=E3=81=A7?= =?UTF-8?q?=E3=81=AE=E3=82=A8=E3=83=A9=E3=83=BC=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DicdataStoreTests/DicdataStoreTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/KanaKanjiConverterModuleWithDefaultDictionaryTests/DicdataStoreTests/DicdataStoreTests.swift b/Tests/KanaKanjiConverterModuleWithDefaultDictionaryTests/DicdataStoreTests/DicdataStoreTests.swift index b02bbe3..3c897ca 100644 --- a/Tests/KanaKanjiConverterModuleWithDefaultDictionaryTests/DicdataStoreTests/DicdataStoreTests.swift +++ b/Tests/KanaKanjiConverterModuleWithDefaultDictionaryTests/DicdataStoreTests/DicdataStoreTests.swift @@ -59,7 +59,7 @@ final class DicdataStoreTests: XCTestCase { for (key, word) in mustWords { var c = ComposingText() c.insertAtCursorPosition(key, inputStyle: .direct) - let result = dicdataStore.getLOUDSData(inputData: c, from: 0, to: c.input.endIndex - 1) + let result = dicdataStore.getLOUDSData(inputData: c, from: 0, to: c.input.endIndex - 1, needTypoCorrection: false) // 冗長な書き方だが、こうすることで「どの項目でエラーが発生したのか」がはっきりするため、こう書いている。 XCTAssertEqual(result.first(where: {$0.data.word == word})?.data.word, word) } @@ -80,7 +80,7 @@ final class DicdataStoreTests: XCTestCase { for (key, word) in mustWords { var c = ComposingText() c.insertAtCursorPosition(key, inputStyle: .direct) - let result = dicdataStore.getLOUDSData(inputData: c, from: 0, to: c.input.endIndex - 1) + let result = dicdataStore.getLOUDSData(inputData: c, from: 0, to: c.input.endIndex - 1, needTypoCorrection: false) XCTAssertNil(result.first(where: {$0.data.word == word && $0.data.ruby == key})) } }