(t *testing.T)
| 19 | } |
| 20 | |
| 21 | func TestPlot(t *testing.T) { |
| 22 | pt := New() |
| 23 | pt.Title.Text = "Test Plot" |
| 24 | pt.X.Min = 0 |
| 25 | pt.X.Max = 100 |
| 26 | pt.X.Label.Text = "X Axis" |
| 27 | pt.Y.Min = 0 |
| 28 | pt.Y.Max = 100 |
| 29 | pt.Y.Label.Text = "Y Axis" |
| 30 | |
| 31 | pt.Resize(image.Point{640, 480}) |
| 32 | pt.Draw() |
| 33 | imagex.Assert(t, pt.Pixels, "plot.png") |
| 34 | } |