1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Merge pull request #237 from BillKeenan/update_bargraph_test

fixed bargraph test
This commit is contained in:
Chris Cummer 2018-07-11 13:29:33 -04:00 committed by GitHub
commit 195da3801c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,10 +14,10 @@ func makeData() [][2]int64 {
const lineCount = 2
var stats [lineCount][2]int64
stats[0][1] = 1530122942
stats[0][1] = 1530122942000
stats[0][0] = 100
stats[1][1] = 1530132942
stats[1][1] = 1531142942000
stats[1][0] = 210
return stats[:]
@ -29,5 +29,5 @@ func TestOutput(t *testing.T) {
result := BuildStars(makeData(), 20, "*")
Equal(t, result, "Jan 18, 1970 -\t [red]*[white] - (100)\nJan 18, 1970 -\t [red]********************[white] - (210)\n")
Equal(t, "Jun 27, 2018 -\t [red]*[white] - (100)\nJul 09, 2018 -\t [red]********************[white] - (210)\n", result)
}