Merge remote-tracking branch 'origin/codex/wooden-fish-template'
This commit is contained in:
@@ -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