Skip to content

Commit

Permalink
Move test .txt files to a testdata directory
Browse files Browse the repository at this point in the history
  • Loading branch information
hsivonen committed May 11, 2022
1 parent 433ea9d commit 2310ea8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions experimental/collator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ mod tests {
#[test]
fn test_th_dictionary() {
// Adapted from `CollationThaiTest::TestDictionary` of thcoll.cpp in ICU4C.
let dict = include_str!("riwords.txt")
let dict = include_str!("../testdata/riwords.txt")
.strip_prefix('\u{FEFF}')
.unwrap();
let locale: Locale = langid!("th").into();
Expand Down Expand Up @@ -1614,7 +1614,7 @@ mod tests {
fn test_conformance_shifted() {
// Adapted from `UCAConformanceTest::TestTableShifted` of ucaconf.cpp in ICU4C.
let bugs = [];
let dict = include_bytes!("CollationTest_CLDR_SHIFTED.txt");
let dict = include_bytes!("../testdata/CollationTest_CLDR_SHIFTED.txt");
let data_provider = icu_testdata::get_provider();

let mut options = CollatorOptions::new();
Expand Down Expand Up @@ -1659,7 +1659,7 @@ mod tests {
fn test_conformance_non_ignorable() {
// Adapted from `UCAConformanceTest::TestTableNonIgnorable` of ucaconf.cpp in ICU4C.
let bugs = [];
let dict = include_bytes!("CollationTest_CLDR_NON_IGNORABLE.txt");
let dict = include_bytes!("../testdata/CollationTest_CLDR_NON_IGNORABLE.txt");
let data_provider = icu_testdata::get_provider();

let mut options = CollatorOptions::new();
Expand Down
File renamed without changes.

0 comments on commit 2310ea8

Please sign in to comment.