Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Co-authored-by: Yjn024 <[email protected]>
  • Loading branch information
0123456789-jpg and JieningYu committed Nov 17, 2023
1 parent d4a024b commit d313cba
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions core/src/text/tests.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
use std::sync::Arc;

use super::{
content::{Translatable, TranslatableArg},
Text,
};
use super::Text;

#[test]
fn to_string() {
Expand Down Expand Up @@ -49,14 +44,15 @@ fn ser_de() {
Default::default(),
);
text.push(Text::new(
super::content::Content::Translatable(Translatable::new(
std::borrow::Cow::Borrowed("item.rimecraft.gold_ingot"),
None,
vec![TranslatableArg::Display(Arc::new(
crate::text::content::Content::Empty,
vec![Text::new(
super::content::Content::Literal(std::borrow::Cow::Borrowed(
"玩Blue Archive的人素质都很差",
))],
)),
vec![],
// 狠狠同意了
)),
vec![],
Default::default(),
)],
Default::default(),
));
text.push(Text::new(
Expand Down

0 comments on commit d313cba

Please sign in to comment.