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

Determines of a &str is snake_case

    use inflector::cases::snakecase::is_snake_case;
    let mock_string: &str = "Foo bar string that is really really long";
    let asserted_bool: bool = is_snake_case(mock_string);
    assert!(asserted_bool == false);
    use inflector::cases::snakecase::is_snake_case;
    let mock_string: &str = "foo-bar-string-that-is-really-really-long";
    let asserted_bool: bool = is_snake_case(mock_string);
    assert!(asserted_bool == false);
    use inflector::cases::snakecase::is_snake_case;
    let mock_string: &str = "FooBarIsAReallyReallyLongString";
    let asserted_bool: bool = is_snake_case(mock_string);
    assert!(asserted_bool == false);
    use inflector::cases::snakecase::is_snake_case;
    let mock_string: &str = "Foo Bar Is A Really Really Long String";
    let asserted_bool: bool = is_snake_case(mock_string);
    assert!(asserted_bool == false);
    use inflector::cases::snakecase::is_snake_case;
    let mock_string: &str = "FOO_BAR_IS_A_REALLY_REALLY_LONG_STRING";
    let asserted_bool: bool = is_snake_case(mock_string);
    assert!(asserted_bool == false);
    use inflector::cases::snakecase::is_snake_case;
    let mock_string: &str = "fooBarIsAReallyReallyLongString";
    let asserted_bool: bool = is_snake_case(mock_string);
    assert!(asserted_bool == false);
    use inflector::cases::snakecase::is_snake_case;
    let mock_string: &str = "foo_bar_string_that_is_really_really_long";
    let asserted_bool: bool = is_snake_case(mock_string);
    assert!(asserted_bool == true);
    use inflector::cases::snakecase::is_snake_case;
    let mock_string: &str = "foo_bar1_string_that_is_really_really_long";
    let asserted_bool: bool = is_snake_case(mock_string);
    assert!(asserted_bool == false);
    use inflector::cases::snakecase::is_snake_case;
    let mock_string: &str = "foo_bar_1_string_that_is_really_really_long";
    let asserted_bool: bool = is_snake_case(mock_string);
    assert!(asserted_bool == true);