From 5ed20d54855317b35e8e26fcb43c81ffaa9ebf33 Mon Sep 17 00:00:00 2001 From: Peter Hellberg Date: Fri, 19 Jan 2018 23:09:48 +0100 Subject: [PATCH] Change package to text_test --- text/atlas_test.go | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/text/atlas_test.go b/text/atlas_test.go index 6d79409..2cb99bb 100644 --- a/text/atlas_test.go +++ b/text/atlas_test.go @@ -1,18 +1,22 @@ -package text +package text_test -import "testing" +import ( + "testing" + + "github.com/faiface/pixel/text" +) func TestAtlas7x13(t *testing.T) { - if Atlas7x13 == nil { + if text.Atlas7x13 == nil { t.Fatalf("Atlas7x13 is nil") } for _, tt := range []struct { runes []rune want bool - }{{ASCII, true}, {[]rune("ÅÄÖ"), false}} { + }{{text.ASCII, true}, {[]rune("ÅÄÖ"), false}} { for _, r := range tt.runes { - if got := Atlas7x13.Contains(r); got != tt.want { + if got := text.Atlas7x13.Contains(r); got != tt.want { t.Fatalf("Atlas7x13.Contains('%s') = %v, want %v", string(r), got, tt.want) } }