Parcourir la source

Add new test cases

tags/v0.1.0
Victor Korzunin il y a 4 ans
Parent
révision
5c71f7c32a
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. +2
    -0
      camel_test.go

+ 2
- 0
camel_test.go Voir le fichier

@@ -31,6 +31,7 @@ import (
func TestToCamel(t *testing.T) {
cases := [][]string{
{"test_case", "TestCase"},
{"test.case", "TestCase"},
{"test", "Test"},
{"TestCase", "TestCase"},
{" test case ", "TestCase"},
@@ -56,6 +57,7 @@ func TestToLowerCamel(t *testing.T) {
{"TestCase", "testCase"},
{"", ""},
{"AnyKind of_string", "anyKindOfString"},
{"AnyKind.of-string", "anyKindOfString"},
}
for _, i := range cases {
in := i[0]


Chargement…
Annuler
Enregistrer