()
| 341 | |
| 342 | #[test] |
| 343 | fn test_local_json_roundtrip() { |
| 344 | let local = Local::new("src/main.rs", 42); |
| 345 | let json = serde_json::to_string(&local).unwrap(); |
| 346 | let parsed: Local = serde_json::from_str(&json).unwrap(); |
| 347 | assert_eq!(local, parsed); |
| 348 | } |
| 349 | |
| 350 | #[test] |
| 351 | fn test_local_json_full_roundtrip() { |