add test
This commit is contained in:
parent
5f04c6538f
commit
469ae79066
@ -118,8 +118,11 @@ pub enum Error {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
use serde_json;
|
||||||
|
use *;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn it_works() {
|
fn deserialize_is_funny() {
|
||||||
assert_eq!(2 + 2, 4);
|
let list: CardList = serde_json::from_str(include_str!("../test_data/is_funny.json")).unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
13291
test_data/is_funny.json
Normal file
13291
test_data/is_funny.json
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user