Skip to content

Commit

Permalink
Update asciigraph_test.go
Browse files Browse the repository at this point in the history
Add test case for all 0 values in data.
  • Loading branch information
guptarohit committed Jan 12, 2019
1 parent a6c5ba7 commit 1bc9b24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions asciigraph_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ func TestPlot(t *testing.T) {
[]float64{1, 1, 1, 1, 1},
nil,
` 1.00 ┼──── `},
{
[]float64{0, 0, 0, 0, 0},
nil,
` 0.00 ┼──── `},
{
[]float64{2, 1, 1, 2, -2, 5, 7, 11, 3, 7, 1},
nil,
Expand Down

0 comments on commit 1bc9b24

Please sign in to comment.