| 92 | } |
| 93 | |
| 94 | func TestInput_CamelCaseOddRuleError(t *testing.T) { |
| 95 | defer func() { |
| 96 | if err := recover(); err == nil { |
| 97 | t.Errorf("Error expected") |
| 98 | } |
| 99 | }() |
| 100 | str := New("Camel case this_complicated__string%%") |
| 101 | against := "camelCaseThisComplicatedString%%" |
| 102 | if val := str.CamelCase("%").Get(); val != against { |
| 103 | t.Errorf("Expected: to be %s but got: %s", "camelCaseThisComplicatedString", val) |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | func TestInput_PascalCaseNoRule(t *testing.T) { |
| 108 | str := New("pascal case this_complicated__string%%") |