Skip to content

Commit

Permalink
test has_named() too
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed May 16, 2024
1 parent b76a63a commit bf2865d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions capnpc/test/dynamic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ fn test_get_named_missing() {
let root = root.into_reader();
// try a bunch of fields that don't exist
assert!(root.get_named("AAAAAAA").is_err());
assert!(root.has_named("AAAAAAA").is_err());
assert!(root.get_named("abcdef").is_err());
assert!(root.has_named("abcdef").is_err());
assert!(root.get_named("zzzzzzz").is_err());
assert!(root.has_named("zzzzzzz").is_err());
}

0 comments on commit bf2865d

Please sign in to comment.