Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move test suite within the zspell directory so docs.rs can build project #82

Merged
merged 1 commit into from
Oct 30, 2023
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
27 changes: 5 additions & 22 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,8 @@

<!-- next-header -->

## [Unreleased] - ReleaseDate

### Added

### Changed

### Removed



## [0.5.0] - 2023-10-30

### Added

### Changed

### Removed



## [0.5.0] - 2023-10-30
## [Unreleased] - ReleaseDate

### Additions

Expand All @@ -38,6 +19,10 @@ Publish the work in progress command line interface under crate name
- Rewrite the `.dic` file parser.
- Improve handling of morphological information in dictionary files.

## [0.5.0] - 2023-10-30

Immediately superceded release, see 0.5.1.

## [0.4.1] - 2023-10-18

### Additions
Expand Down Expand Up @@ -184,8 +169,6 @@ Minor bups in the dependency list

<!-- next-url -->
[Unreleased]: https://github.com/pluots/zspell/compare/v0.5.0...HEAD
[0.5.0]: https://github.com/pluots/zspell/compare/v0.5.0...v0.5.0

[0.5.0]: https://github.com/pluots/zspell/compare/v0.4.1...v0.5.0
[0.4.1]: https://github.com/pluots/zspell/compare/v0.4.0...v0.4.1
[0.4.0]: https://github.com/pluots/zspell/compare/v0.3.3...v0.4.0
Expand Down
1 change: 1 addition & 0 deletions test-suite
5 changes: 2 additions & 3 deletions zspell/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ const TEST_PREFIX: &str = "// autogenerated file, do not edit manually
fn update_tests() {
let root = Path::new(env!("CARGO_MANIFEST_DIR"));
let out_path = Path::new(&env::var("OUT_DIR").unwrap()).join("auto_suite.rs");
let suite_dir = root.parent().unwrap().join("test-suite");
println!("cargo:rerun-if-changed={}", suite_dir.to_string_lossy());
let suite_dir = root.join("test-suite");
let test_paths = fs::read_dir(suite_dir).unwrap();

let mut to_write = TEST_PREFIX.to_owned();
Expand All @@ -46,7 +45,7 @@ fn update_tests() {
#[test]
fn test_{test_name}() {{
let path = std::path::Path::new(env!(\"CARGO_MANIFEST_DIR\"));
let path = path.parent().unwrap().join(\"test-suite/{fname}\");
let path = path.join(\"test-suite/{fname}\");
let mgr = test_util::TestManager::new_from_file(path);
let dict = mgr.build_dict();
mgr.check_all(&dict);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading