feat: Latticeの操作をconvertTargetベースのindexとinputベースのindexの二重化

This commit is contained in:
Miwa / Ensan
2025-07-10 01:12:11 +09:00
parent dca5119e59
commit 704fa9871f
31 changed files with 401 additions and 188 deletions

View File

@ -290,7 +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)
XCTAssertEqual(result.first(where: {$0.data.word == "テストワード"})?.range, .input(from: 0, to: 11))
}
//