| 1 |
// This file is part of ICU4X. For terms of use, please see the file |
| 2 |
// called LICENSE at the top level of the ICU4X source tree |
| 3 |
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). |
| 4 |
|
| 5 |
use serde::{Deserialize, Serialize}; |
| 6 |
|
| 7 |
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
| 8 |
pub struct DayPeriodTests(pub Vec<DayPeriodTest>); |
| 9 |
|
| 10 |
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
| 11 |
pub struct DayPeriodTest { |
| 12 |
pub locale: String, |
| 13 |
pub test_cases: Vec<DayPeriodTestCase>, |
| 14 |
} |
| 15 |
|
| 16 |
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
| 17 |
pub struct DayPeriodTestCase { |
| 18 |
pub datetimes: Vec<String>, |
| 19 |
pub expectations: Vec<DayPeriodExpectation>, |
| 20 |
} |
| 21 |
|
| 22 |
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
| 23 |
pub struct DayPeriodExpectation { |
| 24 |
pub patterns: Vec<String>, |
| 25 |
pub expected: String, |
| 26 |
} |