Skip to content

Commit 1bc9b24

Browse files
authored
Update asciigraph_test.go
Add test case for all 0 values in data.
1 parent a6c5ba7 commit 1bc9b24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

asciigraph_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ func TestPlot(t *testing.T) {
1515
[]float64{1, 1, 1, 1, 1},
1616
nil,
1717
` 1.00 ┼──── `},
18+
{
19+
[]float64{0, 0, 0, 0, 0},
20+
nil,
21+
` 0.00 ┼──── `},
1822
{
1923
[]float64{2, 1, 1, 2, -2, 5, 7, 11, 3, 7, 1},
2024
nil,

0 commit comments

Comments
 (0)