diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-02-22 16:10:58 +0100 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2021-02-25 19:52:33 +0100 |
commit | 2662f774dd3712de0f9c7e085ff6effaafb4eab2 (patch) | |
tree | 0d000cf8cb7239e7ecf1cc3c691a12ea9f62fddd | |
parent | 6bb8608948484f37b6f963219d0e8371c506e01d (diff) |
pkgs/profpatsch/nman: check that empty sections are disallowed
-rw-r--r-- | pkgs/profpatsch/nman/nman.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/profpatsch/nman/nman.rs b/pkgs/profpatsch/nman/nman.rs index bc7810ed..d7a37fca 100644 --- a/pkgs/profpatsch/nman/nman.rs +++ b/pkgs/profpatsch/nman/nman.rs @@ -409,9 +409,10 @@ mod tests { assert!(parse_man_section("8").is_ok()); assert!(parse_man_section("9").is_ok()); - assert!(!parse_man_section("man").is_ok()); - assert!(!parse_man_section("ocamlPackages.sexp").is_ok()); - assert!(!parse_man_section("lowdown").is_ok()); + assert!(parse_man_section("man").is_err()); + assert!(parse_man_section("ocamlPackages.sexp").is_err()); + assert!(parse_man_section("lowdown").is_err()); + assert!(parse_man_section("").is_err()); } #[test] |