Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Migrate normalization tests to test/ to simplify pruning tests during shipping.#48

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Manishearth merged 4 commits intounicode-rs:masterfromkentfredric:attempt-4
Nov 22, 2019

Conversation

@kentfredric
Copy link
Contributor

Fixes:#38

Leaves all other tests in place.Provides a #[doc(hidden)] shim for accessing/using otherwise privatemembers from tests/
- Unify all tests/ into a single file to reduce the number of output  targets during `cargo test`- This also avoids double-compiling the normalization_tests.rs- Move normalization_tests.rs to be a child of tests/data/ to avoid  getting compiled as a test unit, and further removing useless output  from cargo test
Leaving integrated bundled tests working.
@kentfredric
Copy link
ContributorAuthor

You'd also need to update the script to generate the normalization tests file in the tests folder instead.

I haven't done this part yet, for 2 reasons:

  1. The existing code doesn't drop these files in the right place as it is, and it has to be done manually.
  2. The existing code generates a copy of the tables.rs file without some changes that were recently added manually:cc442c3#diff-c423bc3001a014e9b6c8d2d65fcd5da6
diff --git a/src/tables.rs b/src/tables.rsindex 960a94f..f92898d 100644--- a/src/tables.rs+++ b/src/tables.rs@@ -19217,6 +19217,7 @@ pub(crate) const COMBINING_MARK_KV: &[u32] = &[   #[inline]+#[allow(ellipsis_inclusive_range_patterns)] pub fn qc_nfc(c: char) -> IsNormalized {     match c {         '\u{0340}'...'\u{0341}' => No,@@ -19340,6 +19341,7 @@ pub fn qc_nfc(c: char) -> IsNormalized { }  #[inline]+#[allow(ellipsis_inclusive_range_patterns)] pub fn qc_nfkc(c: char) -> IsNormalized {     match c {         '\u{00A0}' => No,@@ -19776,6 +19778,7 @@ pub fn qc_nfkc(c: char) -> IsNormalized { }  #[inline]+#[allow(ellipsis_inclusive_range_patterns)] pub fn qc_nfd(c: char) -> IsNormalized {     match c {         '\u{00C0}'...'\u{00C5}' => No,@@ -20025,6 +20028,7 @@ pub fn qc_nfd(c: char) -> IsNormalized { }  #[inline]+#[allow(ellipsis_inclusive_range_patterns)] pub fn qc_nfkd(c: char) -> IsNormalized {     match c {         '\u{00A0}' => No,

@ManishearthManishearth merged commit717e6c2 intounicode-rs:masterNov 22, 2019
@Manishearth
Copy link
Member

Thanks!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

cargo test fails from crates.io tarball

2 participants

@kentfredric@Manishearth

[8]ページ先頭

©2009-2025 Movatter.jp