Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate fixtures to neo datetime #5259

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions components/datetime/benches/fixtures/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).

use icu_datetime::options;
use icu_datetime::{neo_skeleton::NeoSkeleton, options};
use icu_datetime::options::DateTimeFormatterOptions;
use serde::{Deserialize, Serialize};

Expand All @@ -25,12 +25,12 @@ pub struct TestInput {
pub enum TestOptions {
#[serde(rename = "length")]
Length(options::length::Bag),
#[serde(rename = "components")]
#[serde(rename = "semanticSkeleton")]
#[cfg(feature = "experimental")]
Components(options::components::Bag),
#[serde(rename = "components")]
SemanticSkeleton(NeoSkeleton),
#[serde(rename = "semanticSkeleton")]
#[cfg(not(feature = "experimental"))]
Components(serde_json::Value),
SemanticSkeleton(serde_json::Value),
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
Expand Down
Loading