open-i18n / rust-unic

UNIC: Unicode and Internationalization Crates for Rust
https://crates.io/crates/unic
Other
234 stars 24 forks source link

Drop all direct deps on /data/ #164

Open behnam opened 7 years ago

behnam commented 7 years ago

Now that we have very simple and easy ways to generate data tables from source data files, it's better to replace almost all direct reads for files under /data/ from /unic/**/tests/**/*.rs with conversion of test data into test data tables (under <component>/tests/tables/, in an RSV format), and using the test data tables for running the tests.

This will allow us to package more (integration) tests, which is a good practice because of the cargo packages being the source for distro packages.

For some test data sources, the complicated format of the test file may actually make it less useful to apply this pattern. So, we should only do this when it's not too much overhead.