Piotr Czajkowski преди 5 години
родител
ревизия
670a10a7b1
променени са 1 файла, в които са добавени 1 реда и са изтрити 7 реда
  1. 1 7
      stringFromTemplate_test.go

+ 1 - 7
stringFromTemplate_test.go

@@ -21,9 +21,7 @@ And something else here {{.Second}}`
 	result := ToString(templateString, test)
 
 	if expected != result {
-		t.Errorf("%v", result)
-	} else {
-		t.Log("String constructed properly.")
+		t.Errorf("Wrong result: %v", result)
 	}
 }
 
@@ -37,8 +35,6 @@ And something else here {{.Second}}`
 
 	if expected == result {
 		t.Error("It should fail on template parsing!")
-	} else {
-		t.Log(result)
 	}
 }
 
@@ -57,7 +53,5 @@ And something else here {{.Second}}`
 
 	if expected == result {
 		t.Error("It should fail!")
-	} else {
-		t.Log(result)
 	}
 }