Added missing tests for casing
This commit is contained in:
parent
fdbe0205f1
commit
52eea5ce4c
@ -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"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user