mirror of
https://github.com/mii443/AzooKeyKanaKanjiConverter.git
synced 2025-08-22 15:05:26 +00:00
lint
This commit is contained in:
@ -27,7 +27,6 @@ struct LookupGraph {
|
||||
/// node indexから始まるloudsノードのindex
|
||||
var loudsNodeIndex: [Int: [Int: Int]] = [:]
|
||||
|
||||
|
||||
static func build(input: consuming InputGraph, character2CharId: (Character) -> UInt8) -> Self {
|
||||
let nodes = input.nodes.map {
|
||||
Node(character: $0.character, charId: character2CharId($0.character), inputElementsRange: $0.inputElementsRange, correction: $0.correction)
|
||||
@ -194,4 +193,3 @@ extension DicdataStore {
|
||||
return data
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -218,7 +218,7 @@ final class LookupGraphTests: XCTestCase {
|
||||
let correctGraph1 = CorrectGraph.build(input: [
|
||||
.init(character: "た", inputStyle: .direct),
|
||||
.init(character: "い", inputStyle: .direct),
|
||||
.init(character: "か", inputStyle: .direct),
|
||||
.init(character: "か", inputStyle: .direct)
|
||||
])
|
||||
let inputGraph1 = InputGraph.build(input: correctGraph1)
|
||||
var lookupGraph1 = LookupGraph.build(input: inputGraph1, character2CharId: values.character2CharId)
|
||||
@ -268,7 +268,7 @@ final class LookupGraphTests: XCTestCase {
|
||||
let correctGraph1 = CorrectGraph.build(input: [
|
||||
.init(character: "た", inputStyle: .direct),
|
||||
.init(character: "い", inputStyle: .direct),
|
||||
.init(character: "か", inputStyle: .direct),
|
||||
.init(character: "か", inputStyle: .direct)
|
||||
])
|
||||
let inputGraph1 = InputGraph.build(input: correctGraph1)
|
||||
var lookupGraph1 = LookupGraph.build(input: inputGraph1, character2CharId: values.character2CharId)
|
||||
@ -278,7 +278,7 @@ final class LookupGraphTests: XCTestCase {
|
||||
|
||||
let correctGraph2 = CorrectGraph.build(input: [
|
||||
.init(character: "た", inputStyle: .direct),
|
||||
.init(character: "い", inputStyle: .direct),
|
||||
.init(character: "い", inputStyle: .direct)
|
||||
])
|
||||
let inputGraph2 = InputGraph.build(input: correctGraph2)
|
||||
var lookupGraph2 = LookupGraph.build(input: inputGraph2, character2CharId: values.character2CharId)
|
||||
|
Reference in New Issue
Block a user