github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/preprocessor/preprocessor_test.go (about) 1 package preprocessor 2 3 import "testing" 4 5 func TestNewFilePPFail(t *testing.T) { 6 _, err := NewFilePP([]string{""}, []string{""}, false) 7 if err == nil { 8 t.Fatalf("Haven`t error") 9 } 10 } 11 12 func TestGetIncludeListFail(t *testing.T) { 13 _, err := getIncludeList([]string{"@sdf s"}, []string{"wqq4 `?p"}, []string{"w3 fdws", "sdfsr 4"}, false) 14 if err == nil { 15 t.Fatalf("Haven`t error") 16 } 17 }