MCPcopy Create free account
hub / github.com/dlclark/regexp2 / TestAddLowercaseComplementRange

Function TestAddLowercaseComplementRange

syntax/charclass_test.go:35–45  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func TestAddLowercaseComplementRange(t *testing.T) {
36 set := NotECMADigitClass()
37 set.addLowercase()
38
39 if set.CharIn('1') {
40 t.Fatal("digit should remain excluded")
41 }
42 if !set.CharIn('t') {
43 t.Fatal("letter should remain included")
44 }
45}

Callers

nothing calls this directly

Calls 2

addLowercaseMethod · 0.80
CharInMethod · 0.80

Tested by

no test coverage detected