Commit 80c835a8 authored by Chunchi Che's avatar Chunchi Che

remove test_card_strings_reader

parent ddb7cc6a
Pipeline #18806 passed with stages
in 5 minutes and 47 seconds
...@@ -95,20 +95,4 @@ mod tests { ...@@ -95,20 +95,4 @@ mod tests {
"元素英雄 E・HERO" "元素英雄 E・HERO"
); );
} }
#[test]
fn test_card_strings_reader() {
let data = 32807846;
let code = (data >> 4) & 0xfffffff;
let offset = data & 0xf;
println!("{}, {}", code, offset);
let card = serde_json::from_str::<super::CardMeta>(
super::cards_service(code.to_string()).as_str(),
)
.unwrap();
assert_eq!(card.text.get_str_by_offset(offset).unwrap(), "");
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment