(t *testing.T)
| 113 | } |
| 114 | |
| 115 | func TestInput_PascalCaseOddRuleError(t *testing.T) { |
| 116 | defer func() { |
| 117 | if err := recover(); err == nil { |
| 118 | t.Errorf("Error expected") |
| 119 | } |
| 120 | }() |
| 121 | str := New("pascal case this_complicated__string%%") |
| 122 | against := "PascalCaseThisComplicatedString%%" |
| 123 | if val := str.PascalCase("%").Get(); val != against { |
| 124 | t.Errorf("Expected: to be %s but got: %s", "PascalCaseThisComplicatedString", val) |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | func TestInput_ContainsAll(t *testing.T) { |
| 129 | contains := New("hello mam how are you??") |
nothing calls this directly
no test coverage detected
searching dependent graphs…