Update test to check blank lines count
@@ -90,6 +90,10 @@ int main()
if fileJob.Comment != 4 {
t.Errorf("Expected 4 lines got %d", fileJob.Comment)
}
+
+ if fileJob.Blank != 4 {
+ t.Errorf("Expected 4 lines got %d", fileJob.Blank)
+ }
}
func TestCountStatsAccuracyRakefile(t *testing.T) {
@@ -123,6 +127,10 @@ end
if fileJob.Comment != 2 {
t.Errorf("Expected 2 lines got %d", fileJob.Comment)
}
+
+ if fileJob.Blank != 4 {
+ t.Errorf("Expected 4 lines got %d", fileJob.Comment)
+ }
}
// TODO improve logic so the below works
