add test
This commit is contained in:
parent
5f04c6538f
commit
469ae79066
@ -118,8 +118,11 @@ pub enum Error {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use serde_json;
|
||||
use *;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
assert_eq!(2 + 2, 4);
|
||||
fn deserialize_is_funny() {
|
||||
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