Added missing tests for casing

This commit is contained in:
boukeversteegh 2020-06-14 23:15:56 +02:00
parent fdbe0205f1
commit 52eea5ce4c

View File

@ -9,6 +9,7 @@ from betterproto.casing import camel_case, pascal_case, snake_case
("", ""),
("a", "A"),
("foobar", "Foobar"),
("fooBar", "FooBar"),
("FooBar", "FooBar"),
("foo.bar", "FooBar"),
("foo_bar", "FooBar"),
@ -38,6 +39,7 @@ def test_pascal_case(value, expected):
("", ""),
("a", "a"),
("foobar", "foobar"),
("fooBar", "fooBar"),
("FooBar", "fooBar"),
("foo.bar", "fooBar"),
("foo_bar", "fooBar"),
@ -65,6 +67,7 @@ def test_camel_case(value, expected):
("", ""),
("a", "a"),
("foobar", "foobar"),
("fooBar", "foo_bar"),
("FooBar", "foo_bar"),
("foo.bar", "foo_bar"),
("foo_bar", "foo_bar"),