We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb58dcd commit be622e4Copy full SHA for be622e4
src/apath.rs
@@ -291,6 +291,8 @@ impl DebugCheckOrder {
291
292
#[cfg(test)]
293
mod test {
294
+ use std::str::FromStr;
295
+
296
use super::Apath;
297
298
#[test]
@@ -376,6 +378,8 @@ mod test {
376
378
];
377
379
for v in invalid_cases.iter() {
380
assert!(!Apath::is_valid(v), "{v:?} incorrectly marked valid");
381
+ let err = Apath::from_str(v).unwrap_err();
382
+ assert_eq!(format!("{}", err), "Invalid apath: must have an initial slash and no ..");
383
}
384
385
0 commit comments