runtime: update Decodal import loader test
This commit is contained in:
@@ -742,7 +742,12 @@ mod tests {
|
|||||||
let loaded = loader
|
let loaded = loader
|
||||||
.load(Some("profiles/main.dcdl"), "./shared.dcdl")
|
.load(Some("profiles/main.dcdl"), "./shared.dcdl")
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert_eq!(loaded.key, "profiles/shared.dcdl");
|
match loaded {
|
||||||
|
LoadedImport::Source(source) => {
|
||||||
|
assert_eq!(source.key, "profiles/shared.dcdl");
|
||||||
|
}
|
||||||
|
LoadedImport::Value(_) => panic!("expected source import"),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in New Issue
Block a user