scsys-utils 0.2.3

scsys is a collection of primitives and utilities for use throughout the ecosystem.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/*
    Appellation: casing <module>
    Contrib: FL03 <jo3mccain@icloud.com>
*/
use scsys_utils::casing::to_snakecase;

#[test]
fn test_snakecase() {
    let s = "HelloWorld";

    assert_eq!(to_snakecase(s), "hello_world");
}