This commit is contained in:
parent
57905899d7
commit
0407a8bfbd
9248
data/stgb/builder.result
Normal file
9248
data/stgb/builder.result
Normal file
File diff suppressed because it is too large
Load Diff
@ -565,6 +565,23 @@ mod tests {
|
|||||||
assert_eq!(law, expected);
|
assert_eq!(law, expected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[ignore]
|
||||||
|
#[test]
|
||||||
|
fn test_stgb_with_live_data() {
|
||||||
|
let law = LawBuilder::new("StGB");
|
||||||
|
|
||||||
|
let path = Path::new("./data/stgb/builder.result");
|
||||||
|
let mut file = File::open(path).unwrap();
|
||||||
|
let mut json = String::new();
|
||||||
|
file.read_to_string(&mut json).unwrap();
|
||||||
|
|
||||||
|
let expected: Law = serde_json::from_str(&json).unwrap();
|
||||||
|
|
||||||
|
//println!("{}", serde_json::to_string(&law).unwrap());
|
||||||
|
|
||||||
|
assert_eq!(law, expected);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_builder_full_urhg() {
|
fn test_builder_full_urhg() {
|
||||||
let mut builder = LawBuilder::test("UrhG");
|
let mut builder = LawBuilder::test("UrhG");
|
||||||
|
Loading…
Reference in New Issue
Block a user