Merge pull request #1243 from epage/dict
Some checks are pending
Security audit / security_audit (push) Waiting to run
Security audit / cargo_deny (bans licenses sources) (push) Waiting to run
CI / CI (push) Blocked by required conditions
CI / Test (push) Waiting to run
CI / Check MSRV (push) Waiting to run
CI / Check wasm (push) Waiting to run
CI / lockfile (push) Waiting to run
CI / Docs (push) Waiting to run
CI / rustfmt (push) Waiting to run
CI / clippy (push) Waiting to run
CI / Coverage (push) Waiting to run
/ linux (aarch64) (push) Waiting to run
/ linux (x86) (push) Waiting to run
/ linux (x86_64) (push) Waiting to run
/ musllinux (aarch64) (push) Waiting to run
/ musllinux (x86_64) (push) Waiting to run
/ windows (x64) (push) Waiting to run
/ windows (x86) (push) Waiting to run
/ macos (aarch64) (push) Waiting to run
/ macos (x86_64) (push) Waiting to run
/ sdist (push) Waiting to run
/ Release (push) Blocked by required conditions
pre-commit / pre-commit (push) Waiting to run

refactor(dict): Drop a dict
This commit is contained in:
Ed Page 2025-02-24 21:10:15 -06:00 committed by GitHub
commit d74d5fd5ad
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 184710 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
../../src/word_codegen.rs

View file

@ -6,10 +6,8 @@ fn codegen() {
generate_map(&mut map_content, "WORD", DICT);
let map_content = String::from_utf8(map_content).unwrap();
let map_content = codegenrs::rustfmt(&map_content, None).unwrap();
snapbox::assert_data_eq!(
&map_content,
snapbox::file!["../benches/benches/map_codegen.rs"].raw()
);
// Symlink handles `../benches/benches/map_codegen.rs`
snapbox::assert_data_eq!(&map_content, snapbox::file!["../src/word_codegen.rs"].raw());
let mut aho_corasick_content = vec![];
generate_aho_corasick(&mut aho_corasick_content, "Word", DICT);
@ -19,8 +17,6 @@ fn codegen() {
&aho_corasick_content,
snapbox::file!["../benches/benches/aho_corasick_codegen.rs"].raw()
);
snapbox::assert_data_eq!(&map_content, snapbox::file!["../src/word_codegen.rs"].raw());
}
fn generate_map<W: std::io::Write>(file: &mut W, name: &str, dict: &[u8]) {