fix: input rangeの間違った設定を修正

This commit is contained in:
Miwa / Ensan
2025-07-06 18:51:46 +09:00
parent 5599566147
commit 947ca5e689
2 changed files with 1 additions and 2 deletions

View File

@ -290,6 +290,7 @@ final class DicdataStoreTests: XCTestCase {
sequentialInput(&c, sequence: "tesutowaーdo", inputStyle: .roman2kana)
let result = dicdataStore.getLOUDSDataInRange(inputData: c, from: 0, toIndexRange: c.input.endIndex - 1 ..< c.input.endIndex, needTypoCorrection: false)
XCTAssertTrue(result.contains(where: {$0.data.word == "テストワード"}))
XCTAssertEqual(result.first(where: {$0.data.word == "テストワード"})?.inputRange, 0 ..< 11)
}
//