Function inflector::cases::screamingsnakecase::is_screaming_snake_case
source · [−]Expand description
Determines of a &str
is SCREAMING_SNAKE_CASE
use inflector::cases::screamingsnakecase::is_screaming_snake_case;
let mock_string: &str = "Foo bar string that is really really long";
let asserted_bool: bool = is_screaming_snake_case(mock_string);
assert!(asserted_bool == false);
use inflector::cases::screamingsnakecase::is_screaming_snake_case;
let mock_string: &str = "foo-bar-string-that-is-really-really-long";
let asserted_bool: bool = is_screaming_snake_case(mock_string);
assert!(asserted_bool == false);
use inflector::cases::screamingsnakecase::is_screaming_snake_case;
let mock_string: &str = "FooBarIsAReallyReallyLongString";
let asserted_bool: bool = is_screaming_snake_case(mock_string);
assert!(asserted_bool == false);
use inflector::cases::screamingsnakecase::is_screaming_snake_case;
let mock_string: &str = "Foo Bar Is A Really Really Long String";
let asserted_bool: bool = is_screaming_snake_case(mock_string);
assert!(asserted_bool == false);
use inflector::cases::screamingsnakecase::is_screaming_snake_case;
let mock_string: &str = "fooBarIsAReallyReallyLongString";
let asserted_bool: bool = is_screaming_snake_case(mock_string);
assert!(asserted_bool == false);
use inflector::cases::screamingsnakecase::is_screaming_snake_case;
let mock_string: &str = "FOO_BAR_STRING_THAT_IS_REALLY_REALLY_LONG";
let asserted_bool: bool = is_screaming_snake_case(mock_string);
assert!(asserted_bool == true);
use inflector::cases::screamingsnakecase::is_screaming_snake_case;
let mock_string: &str = "FOO_BAR1_STRING_THAT_IS_REALLY_REALLY_LONG";
let asserted_bool: bool = is_screaming_snake_case(mock_string);
assert!(asserted_bool == true);
use inflector::cases::screamingsnakecase::is_screaming_snake_case;
let mock_string: &str = "FOO_BAR_1_STRING_THAT_IS_REALLY_REALLY_LONG";
let asserted_bool: bool = is_screaming_snake_case(mock_string);
assert!(asserted_bool == true);