Function cruet::case::table::is_table_case

source ·
pub fn is_table_case(test_string: &str) -> bool
Expand description

Determines if a &str is table-case

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