treat out of bounds dates as unknown value
This commit is contained in:
parent
38b35a77cb
commit
284af1ad9f
2 changed files with 20 additions and 10 deletions
|
@ -2,7 +2,8 @@ use wikidata::*;
|
|||
|
||||
#[test]
|
||||
fn simple_item() {
|
||||
let j: serde_json::Value = serde_json::from_str(include_str!("../items/Q106975887.json")).unwrap();
|
||||
let j: serde_json::Value =
|
||||
serde_json::from_str(include_str!("../items/Q106975887.json")).unwrap();
|
||||
Entity::from_json(j).unwrap();
|
||||
}
|
||||
|
||||
|
@ -13,7 +14,6 @@ fn douglas_adams() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[ignore = "can't handle year right"]
|
||||
fn universe() {
|
||||
let j: serde_json::Value = serde_json::from_str(include_str!("../items/Q1.json")).unwrap();
|
||||
Entity::from_json(j).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue