Skip to content

Commit

Permalink
Apply feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
zbraniecki committed Oct 9, 2020
1 parent b4c68ec commit 343335d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/datetime/tests/fixtures/tests/styles.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
}
},
"output": {
"value": "субота, 21 сакавіка 2020 'г'. 'у' 08:25:07, zzzz"
"value": "субота, 21 сакавіка 2020 'г'. 'у' 08:25:07, zzzz"
}
}
]
7 changes: 3 additions & 4 deletions components/fs-data-provider/tests/test_file_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ use std::borrow::Cow;
#[test]
fn test_read_json() {
let provider = FsDataProvider::try_new("../../resources/testdata/data/json")
.expect("Loading file from testdata directory");
let response = provider
.load(&DataRequest {
data_key: icu_data_key!(plurals: cardinal@1),
data_entry: DataEntry {
variant: None,
// TODO: Migrate to LanguageIdentifier macro
langid: "en".parse().expect("Valid language tag"),
langid: "sr".parse().expect("Valid language tag"),
},
})
.expect("The key should be present in the testdata");
Expand All @@ -24,9 +23,9 @@ fn test_read_json() {
plurals_data,
&structs::plurals::PluralRuleStringsV1 {
zero: None,
one: Some(Cow::Borrowed("i = 1 and v = 0")),
one: Some(Cow::Borrowed("v = 0 and i % 10 = 1 and i % 100 != 11 or f % 10 = 1 and f % 100 != 11 @integer 1, 21, 31, 41, 51, 61, 71, 81, 101, 1001, … @decimal 0.1, 1.1, 2.1, 3.1, 4.1, 5.1, 6.1, 7.1, 10.1, 100.1, 1000.1, …")),
two: None,
few: None,
few: Some(Cow::Borrowed("v = 0 and i % 10 = 2..4 and i % 100 != 12..14 or f % 10 = 2..4 and f % 100 != 12..14 @integer 2~4, 22~24, 32~34, 42~44, 52~54, 62, 102, 1002, … @decimal 0.2~0.4, 1.2~1.4, 2.2~2.4, 3.2~3.4, 4.2~4.4, 5.2, 10.2, 100.2, 1000.2, …")),
many: None,
}
);
Expand Down

0 comments on commit 343335d

Please sign in to comment.