(t *testing.T)
| 196 | } |
| 197 | |
| 198 | func TestContinuousStats_GetPlot_IdenticalValues(t *testing.T) { |
| 199 | cs := &ContinuousStats{} |
| 200 | data := []string{"42", "42", "42", "42", "42"} |
| 201 | |
| 202 | cs.summary(data) |
| 203 | plot := cs.getPlot() |
| 204 | |
| 205 | if plot != "All values are identical" { |
| 206 | t.Errorf("Expected 'All values are identical', got: %s", plot) |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | func TestDiscreteStats_GetPlot(t *testing.T) { |
| 211 | ds := &DiscreteStats{} |