Add tests for camel_case and snake_case

This commit is contained in:
Philip Koperski 2021-07-14 09:54:07 -04:00
parent 77c3e706bb
commit d4cb10d3eb
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,12 @@
fn test_without_symbols
output = camel_case "hello world 22"
assert_eq ${output} "HelloWorld22"
end
fn test_with_symbols
output = camel_case "hello!@#$% world^&*()[]{}22"
assert_eq ${output} "HelloWorld22"
end

View file

@ -0,0 +1,12 @@
fn test_without_symbols
output = snake_case "hello world 22"
assert_eq ${output} "hello_world_22"
end
fn test_with_symbols
output = snake_case "hello!@#$% world^&*()[]{}22"
assert_eq ${output} "hello_world_22"
end