(t *testing.T)
| 188 | } |
| 189 | |
| 190 | func TestCsv(t *testing.T) { |
| 191 | bench := makeBench(1, 1) |
| 192 | csv := bench.CSV() |
| 193 | lines := strings.Split(csv, "\n") |
| 194 | if len(lines) != 4 { |
| 195 | t.Fatal("Expected 4 lines of output from the CSV string") |
| 196 | } |
| 197 | |
| 198 | fields := strings.Split(lines[1], ",") |
| 199 | if len(fields) != 7 { |
| 200 | t.Fatal("Expected 7 fields") |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | func TestBenchStrings(t *testing.T) { |
| 205 | bench := makeBench(1, 1) |