(t *testing.T)
| 157 | } |
| 158 | |
| 159 | func TestIsAMPMToken(t *testing.T) { |
| 160 | tests := []struct { |
| 161 | input string |
| 162 | expected bool |
| 163 | }{ |
| 164 | {"am", true}, |
| 165 | {"AM", true}, |
| 166 | {"pm", true}, |
| 167 | {"PM", true}, |
| 168 | {"Am", true}, |
| 169 | {"Pm", true}, |
| 170 | {"invalid", false}, |
| 171 | {"", false}, |
| 172 | } |
| 173 | |
| 174 | for _, tt := range tests { |
| 175 | t.Run(tt.input, func(t *testing.T) { |
| 176 | result := isAMPMToken(tt.input) |
| 177 | assert.Equal(t, tt.expected, result, "isAMPMToken(%q) should return %v", tt.input, tt.expected) |
| 178 | }) |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | func TestNormalizeTimezoneAbbreviation(t *testing.T) { |
| 183 | tests := []struct { |
nothing calls this directly
no test coverage detected