Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,22 @@ jobs:
- name: Build the native runtime and run cargo test
run: bash Core/Portable/test.sh

dictionary:
name: Portable dictionary (cargo test)
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
- name: Cache the dictionary crate build
uses: actions/cache@v5
with:
path: build/dictionary-parity/cargo
key: dictionary-${{ runner.os }}-${{ hashFiles('Core/Portable/dictionary/Cargo.lock', 'rust-toolchain.toml') }}
restore-keys: dictionary-${{ runner.os }}-
# Without a Swift toolchain the script compares against the committed fixtures.
- name: Test and verify the dictionary generator port
run: bash Core/Portable/dictionary/test.sh

scripts:
name: Remote runner tests
runs-on: ubuntu-24.04
Expand Down
2 changes: 1 addition & 1 deletion Core/Portable/dictionary/src/spelling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::collections::{BTreeMap, BTreeSet};

pub fn spelling(dictionary: &[u8]) -> Result<BTreeMap<String, Vec<u8>>> {
let mut syllables = BTreeSet::new();
read_rows(dictionary, "generated-spelling", None, |key, _| {
read_rows(dictionary, "generated-spelling", |key, _| {
syllables.extend(key.reading.split(' ').map(str::to_owned));
})?;
let mut schemas = BTreeMap::new();
Expand Down
1 change: 0 additions & 1 deletion Core/Tests/InkFlowEngineTestSupport/EngineRegression.swift
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ package enum EngineRegression {
check(fields.count == 4)
selectCandidate(String(fields[0]), input: fields[1].replacingOccurrences(of: " ", with: ""), engine: engine)
}
selectCandidate("串行打印机", input: "chuanxingdayinji", engine: engine)
selectCandidate("深度求索", input: "shenduqiusuo", engine: engine)
selectCandidate("阿米诺斯", input: "aminuosi", engine: engine)
selectCandidate("并发信息系统", input: "bingfaxinxixitong", engine: engine)
Expand Down
Loading