pub fn is_sentence_case(test_string: &str) -> bool
Expand description

Determines of a &str is Sentence case

use cruet::case::is_sentence_case;
 
assert!(is_sentence_case("Foo"));
assert!(is_sentence_case("Foo bar string that is really really long"));
 
assert!(!is_sentence_case("foo-bar-string-that-is-really-really-long"));
assert!(!is_sentence_case("FooBarIsAReallyReallyLongString"));
assert!(!is_sentence_case("fooBarIsAReallyReallyLongString"));
assert!(!is_sentence_case("Foo Bar Is A Really Really Long String"));
assert!(!is_sentence_case("FOO_BAR_STRING_THAT_IS_REALLY_REALLY_LONG"));
assert!(!is_sentence_case("foo_bar_string_that_is_really_really_long"));
assert!(!is_sentence_case("foo"));