(t *testing.T)
| 224 | } |
| 225 | |
| 226 | func TestDiscreteStats_GetPlot_EmptyData(t *testing.T) { |
| 227 | ds := &DiscreteStats{} |
| 228 | data := []string{} |
| 229 | |
| 230 | ds.summary(data) |
| 231 | plot := ds.getPlot() |
| 232 | |
| 233 | if plot != "No data to plot" { |
| 234 | t.Errorf("Expected 'No data to plot', got: %s", plot) |
| 235 | } |
| 236 | } |