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"), ("a", "A"),
("foobar", "Foobar"), ("foobar", "Foobar"),
("fooBar", "FooBar"),
("FooBar", "FooBar"), ("FooBar", "FooBar"),
("foo.bar", "FooBar"), ("foo.bar", "FooBar"),
("foo_bar", "FooBar"), ("foo_bar", "FooBar"),
@ -38,6 +39,7 @@ def test_pascal_case(value, expected):
("", ""), ("", ""),
("a", "a"), ("a", "a"),
("foobar", "foobar"), ("foobar", "foobar"),
("fooBar", "fooBar"),
("FooBar", "fooBar"), ("FooBar", "fooBar"),
("foo.bar", "fooBar"), ("foo.bar", "fooBar"),
("foo_bar", "fooBar"), ("foo_bar", "fooBar"),
@ -65,6 +67,7 @@ def test_camel_case(value, expected):
("", ""), ("", ""),
("a", "a"), ("a", "a"),
("foobar", "foobar"), ("foobar", "foobar"),
("fooBar", "foo_bar"),
("FooBar", "foo_bar"), ("FooBar", "foo_bar"),
("foo.bar", "foo_bar"), ("foo.bar", "foo_bar"),
("foo_bar", "foo_bar"), ("foo_bar", "foo_bar"),