From a1aafbeade01d942e49171b44aab37dbfc5f806e Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Sat, 3 Aug 2019 17:19:55 -0700 Subject: [PATCH] Move /wtf tests into /wtf directory --- {wtf_tests/bargraph => wtf}/bargraph_test.go | 3 +-- {wtf_tests => wtf}/colors_test.go | 3 +-- {wtf_tests => wtf}/datetime_test.go | 3 +-- {wtf_tests => wtf}/utils_test.go | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) rename {wtf_tests/bargraph => wtf}/bargraph_test.go (92%) rename {wtf_tests => wtf}/colors_test.go (84%) rename {wtf_tests => wtf}/datetime_test.go (89%) rename {wtf_tests => wtf}/utils_test.go (97%) diff --git a/wtf_tests/bargraph/bargraph_test.go b/wtf/bargraph_test.go similarity index 92% rename from wtf_tests/bargraph/bargraph_test.go rename to wtf/bargraph_test.go index eaad50af..6801c286 100644 --- a/wtf_tests/bargraph/bargraph_test.go +++ b/wtf/bargraph_test.go @@ -1,10 +1,9 @@ -package bargraph_test +package wtf import ( "testing" . "github.com/stretchr/testify/assert" - . "github.com/wtfutil/wtf/wtf" ) // MakeData - Create sample data diff --git a/wtf_tests/colors_test.go b/wtf/colors_test.go similarity index 84% rename from wtf_tests/colors_test.go rename to wtf/colors_test.go index baec66ac..595bee61 100644 --- a/wtf_tests/colors_test.go +++ b/wtf/colors_test.go @@ -1,10 +1,9 @@ -package wtf_tests +package wtf import ( "testing" . "github.com/stretchr/testify/assert" - . "github.com/wtfutil/wtf/wtf" ) func Test_ASCIItoTviewColors(t *testing.T) { diff --git a/wtf_tests/datetime_test.go b/wtf/datetime_test.go similarity index 89% rename from wtf_tests/datetime_test.go rename to wtf/datetime_test.go index 6106e1b1..cfa80380 100644 --- a/wtf_tests/datetime_test.go +++ b/wtf/datetime_test.go @@ -1,11 +1,10 @@ -package wtf_tests +package wtf import ( "testing" "time" . "github.com/stretchr/testify/assert" - . "github.com/wtfutil/wtf/wtf" ) func TestIsToday(t *testing.T) { diff --git a/wtf_tests/utils_test.go b/wtf/utils_test.go similarity index 97% rename from wtf_tests/utils_test.go rename to wtf/utils_test.go index e23c9fc6..22a8180f 100644 --- a/wtf_tests/utils_test.go +++ b/wtf/utils_test.go @@ -1,10 +1,9 @@ -package wtf_tests +package wtf import ( "testing" . "github.com/stretchr/testify/assert" - . "github.com/wtfutil/wtf/wtf" ) /* -------------------- CenterText() -------------------- */