github.com/daixiang0/gci@v0.13.4/pkg/section/newline_test.go (about) 1 package section 2 3 import ( 4 "testing" 5 6 "github.com/daixiang0/gci/pkg/specificity" 7 ) 8 9 func TestNewLineSpecificity(t *testing.T) { 10 testCases := []specificityTestData{ 11 {`""`, NewLine{}, specificity.MisMatch{}}, 12 {`"x"`, NewLine{}, specificity.MisMatch{}}, 13 {`"\n"`, NewLine{}, specificity.MisMatch{}}, 14 } 15 testSpecificity(t, testCases) 16 } 17 18 // func TestNewLineToString(t *testing.T) { 19 // testSectionToString(t, NewLine{}) 20 // }