fix: these values need BOS

This commit is contained in:
ensan-hcl
2025-07-14 14:10:57 -07:00
parent 58e18f2a88
commit d787e88efd

View File

@ -58,13 +58,13 @@ final class RegisteredNodeTests: XCTestCase {
let clause1 = ClauseDataUnit()
clause1.text = "我輩は"
clause1.nextLcid = CIDData..cid
clause1.ranges = [.input(from: 0, to: 5)]
clause1.ranges = [.input(from: 0, to: 0), .input(from: 0, to: 4), .input(from: 4, to: 5)] // (0, 0) BOS
clause1.mid = 1
let clause2 = ClauseDataUnit()
clause2.text = "猫です"
clause2.nextLcid = CIDData.EOS.cid
clause2.ranges = [.input(from: 5, to: 9)]
clause2.ranges = [.input(from: 5, to: 7), .input(from: 7, to: 9)]
clause2.mid = 3
let expectedResult: CandidateData = CandidateData(