()
| 14 | // proc macro in the `metadata` module is equal to the document on the disk. |
| 15 | #[test] |
| 16 | fn document_equivalent() { |
| 17 | let macro_doc = metadata::document(); |
| 18 | let mut path = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")); |
| 19 | path.push("tests"); |
| 20 | path.push("wasi.witx"); |
| 21 | let disk_doc = witx::load(&[path]).expect("load wasi.witx from disk"); |
| 22 | |
| 23 | assert_eq!(macro_doc, disk_doc); |
| 24 | } |
| 25 | |
| 26 | type Result<T> = std::result::Result<T, types::Errno>; |
| 27 |