implemented header contains test
This commit is contained in:
7
main.go
7
main.go
@@ -45,11 +45,16 @@ func main() {
|
||||
// Perform specified test cases
|
||||
for i := range testDefinitions.TestCases {
|
||||
RunTest(&testDefinitions.TestCases[i])
|
||||
success, _ := CheckResults(&testDefinitions.TestCases[i])
|
||||
success, err := CheckResults(&testDefinitions.TestCases[i])
|
||||
if err != nil {
|
||||
fmt.Printf("Error running test case : %s\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
if !success {
|
||||
fmt.Printf("Test result failed\n")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// For debugging, just dump the output
|
||||
|
Reference in New Issue
Block a user