mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 07:22:25 +00:00
test(stencilcraft-format): exercise reader scalar root variants
This commit is contained in:
1 parent
eb379cf3d2
commit
4b8dde4c12
1 file changed
+1
@@ -367,6 +367,7 @@ mod tests {
|
||||
for text in ["false", "-1", "1", "1.5", "\"scalar\"", "null"] {
|
||||
assert!(matches!(File::read(text), Err(Error::NotStencilCraft)));
|
||||
}
|
||||
assert!(matches!(File::read_from(Cursor::new(br#""scalar""#)), Err(Error::NotStencilCraft)));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user