test smartstring::validate(), hooray

This commit is contained in:
Lynne Megido 2021-10-05 02:13:32 +10:00
parent 47c55ae61e
commit 38ca71cc14
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90

View file

@ -462,7 +462,7 @@ fn verbosity() {
]; ];
for (flags, level) in expected_results { for (flags, level) in expected_results {
assert_eq!(Parameters::parse_from(&["fif", flags]).default_verbosity(), level); assert_eq!(Parameters::parse_from(&["fif", flags]).get_verbosity(), level);
} }
} }
@ -479,5 +479,5 @@ fn validate_string_type() {
StdString::from("A long and therefore heap-allocated string") StdString::from("A long and therefore heap-allocated string")
); );
// uncomment if i ever update to smartstring >= 0.2.9 // uncomment if i ever update to smartstring >= 0.2.9
// smartstring::validate(); smartstring::validate();
} }