fixing test.
This commit is contained in:
parent
3bf31e45d3
commit
05caeb41ee
1 changed files with 5 additions and 6 deletions
|
@ -16,12 +16,11 @@ func TestGenerateGridLines(t *testing.T) {
|
||||||
{Value: 4.0, Label: "4.0"},
|
{Value: 4.0, Label: "4.0"},
|
||||||
}
|
}
|
||||||
|
|
||||||
gl := GenerateGridLines(ticks, true)
|
gl := GenerateGridLines(ticks, Style{}, Style{}, true)
|
||||||
assert.Len(gl, 4)
|
assert.Len(gl, 2)
|
||||||
assert.Equal(1.0, gl[0].Value)
|
|
||||||
assert.Equal(2.0, gl[1].Value)
|
assert.Equal(2.0, gl[0].Value)
|
||||||
assert.Equal(3.0, gl[2].Value)
|
assert.Equal(3.0, gl[1].Value)
|
||||||
assert.Equal(4.0, gl[3].Value)
|
|
||||||
|
|
||||||
assert.True(gl[0].IsVertical)
|
assert.True(gl[0].IsVertical)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue