Merge remote-tracking branch 'origin/codex/wooden-fish-template'
This commit is contained in:
@@ -105,6 +105,17 @@ pub fn default_creation_entry_type_snapshots(
|
||||
45,
|
||||
updated_at_micros,
|
||||
),
|
||||
build_default_creation_entry_type_snapshot(
|
||||
"wooden-fish",
|
||||
"敲木鱼",
|
||||
"点击祈福轻玩法",
|
||||
"可创建",
|
||||
"/wooden-fish/default-hit-object.png",
|
||||
true,
|
||||
true,
|
||||
47,
|
||||
updated_at_micros,
|
||||
),
|
||||
build_default_creation_entry_type_snapshot(
|
||||
"square-hole",
|
||||
"方洞",
|
||||
@@ -164,10 +175,10 @@ pub fn default_creation_entry_type_snapshots(
|
||||
"baby-object-match",
|
||||
"宝贝识物",
|
||||
"亲子识物分类",
|
||||
"敬请期待",
|
||||
"可创建",
|
||||
"/child-motion-demo/picture-book-grass-stage.png",
|
||||
true,
|
||||
false,
|
||||
true,
|
||||
90,
|
||||
updated_at_micros,
|
||||
),
|
||||
|
||||
@@ -227,8 +227,8 @@ mod tests {
|
||||
assert_eq!(baby_object_match.title, "宝贝识物");
|
||||
assert_eq!(baby_object_match.subtitle, "亲子识物分类");
|
||||
assert!(baby_object_match.visible);
|
||||
assert!(!baby_object_match.open);
|
||||
assert_eq!(baby_object_match.badge, "敬请期待");
|
||||
assert!(baby_object_match.open);
|
||||
assert_eq!(baby_object_match.badge, "可创建");
|
||||
assert_eq!(baby_object_match.sort_order, 90);
|
||||
assert_eq!(
|
||||
baby_object_match.image_src,
|
||||
@@ -272,6 +272,25 @@ mod tests {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn default_creation_entry_types_include_wooden_fish() {
|
||||
let configs = default_creation_entry_type_snapshots(1);
|
||||
let wooden_fish = configs
|
||||
.iter()
|
||||
.find(|item| item.id == "wooden-fish")
|
||||
.expect("wooden-fish creation entry should be seeded");
|
||||
|
||||
assert_eq!(wooden_fish.title, "敲木鱼");
|
||||
assert!(wooden_fish.visible);
|
||||
assert!(wooden_fish.open);
|
||||
assert_eq!(wooden_fish.badge, "可创建");
|
||||
assert_eq!(wooden_fish.sort_order, 47);
|
||||
assert_eq!(
|
||||
wooden_fish.image_src,
|
||||
"/wooden-fish/default-hit-object.png"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn normalized_clamps_music_volume_into_valid_range() {
|
||||
let low = RuntimeSettings::normalized(-1.0, RuntimePlatformTheme::Light);
|
||||
|
||||
Reference in New Issue
Block a user