INNER CODE UNIT · Rust

snake_to_camel_underscore_consecutive

google/tarpc · plugins/src/lib.rs:861

fn snake_to_camel_underscore_consecutive() {
    assert_eq!(snake_to_camel("abc__def"), "AbcDef");
}

#[test]
fn snake_to_camel_capital_in_middle() {
    assert_eq!(snake_to_camel("aBc_dEf"), "AbcDef");
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…