From d0182ac2b4f0f711a95b00602806f180ab8704f0 Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Mon, 11 Jul 2016 00:27:02 -0700 Subject: [PATCH] fixing tests. --- annotation_series_test.go | 2 +- vector_renderer_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/annotation_series_test.go b/annotation_series_test.go index 947e5c4..2c9b65b 100644 --- a/annotation_series_test.go +++ b/annotation_series_test.go @@ -57,7 +57,7 @@ func TestAnnotationSeriesMeasure(t *testing.T) { assert.False(box.IsZero()) assert.Equal(-5.0, box.Top) assert.Equal(5.0, box.Left) - assert.Equal(139.0, box.Right) //the top,left annotation sticks up 5px and out ~44px. + assert.Equal(145.0, box.Right) //the top,left annotation sticks up 5px and out ~44px. assert.Equal(115.0, box.Bottom) } diff --git a/vector_renderer_test.go b/vector_renderer_test.go index e8f6b03..ecb5aca 100644 --- a/vector_renderer_test.go +++ b/vector_renderer_test.go @@ -47,6 +47,6 @@ func TestVectorRendererMeasureText(t *testing.T) { vr.SetFontSize(12.0) w, h := vr.MeasureText("Ljp") - assert.Equal(26, w) + assert.Equal(21, w) assert.Equal(15, h) }