Fixed order of arguments to assert.Len in test files. (#93)
* Fixed order of arguments to assert.Len in test files. * Added BaseValue funtionality to bar chart
This commit is contained in:
parent
3edccc4758
commit
ac680bd82d
15 changed files with 29 additions and 29 deletions
|
|
@ -10,7 +10,7 @@ func TestRange(t *testing.T) {
|
|||
assert := assert.New(t)
|
||||
|
||||
values := Range(1, 100)
|
||||
assert.Len(100, values)
|
||||
assert.Len(values, 100)
|
||||
assert.Equal(1, values[0])
|
||||
assert.Equal(100, values[99])
|
||||
}
|
||||
|
|
@ -20,7 +20,7 @@ func TestRangeWithStep(t *testing.T) {
|
|||
|
||||
values := RangeWithStep(0, 100, 5)
|
||||
assert.Equal(100, values[20])
|
||||
assert.Len(21, values)
|
||||
assert.Len(values, 21)
|
||||
}
|
||||
|
||||
func TestRangeReversed(t *testing.T) {
|
||||
|
|
@ -42,7 +42,7 @@ func TestValuesRegression(t *testing.T) {
|
|||
assert.Equal(100, linearProvider.Len())
|
||||
|
||||
values := Seq{Provider: linearProvider}.Array()
|
||||
assert.Len(100, values)
|
||||
assert.Len(values, 100)
|
||||
assert.Equal(1.0, values[0])
|
||||
assert.Equal(100, values[99])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue