-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
This:
/// Create an empty library with known dates
fn empty_lib() -> GdsLibrary {
// Create an empty library
let mut lib = GdsLibrary::new("empty");
// Set its dates to some known value, so we can check it round-trips
lib.dates = test_dates();
// And return it for other test
lib
}
#[test]
fn empty_lib_to_toml() -> GdsResult<()> {
let lib = empty_lib();
Toml.save(&lib, &resource("empty.gds.toml")).expect("save failed");
Ok(())
}Fails with:
failures:
---- tests::empty_lib_to_toml stdout ----
thread 'tests::empty_lib_to_toml' panicked at 'save failed: Error(UnsupportedType)', gds21/src/tests.rs:214:50
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Notes:
- Yaml & Json both work
- Yaml, Json, and Toml all work for
lef21::LefLibrary
Unclear at this point what the UnsupportedType is.
Unclear when this was injected, as we had generally only been testing one format of serialization (GDS to JSON, LEF to YAML, nothing to TOML). And it wasn't clear that there are value-types supported in YAML & JSON that aren't in TOML(?). Apparently GdsLibrary has one or more of them.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels