From a9f55ed73f1fb15371f41592df31f4a1043d809b Mon Sep 17 00:00:00 2001 From: Theresa Gresch Date: Tue, 17 Dec 2019 18:26:33 +0100 Subject: [PATCH] Add test for entity/keyword.go --- internal/entity/keyword_test.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 internal/entity/keyword_test.go diff --git a/internal/entity/keyword_test.go b/internal/entity/keyword_test.go new file mode 100644 index 000000000..1069e19b9 --- /dev/null +++ b/internal/entity/keyword_test.go @@ -0,0 +1,19 @@ +package entity + +import ( + "github.com/stretchr/testify/assert" + "testing" +) + +func TestNewKeyword(t *testing.T) { + t.Run("cat", func(t *testing.T) { + keyword := NewKeyword("cat") + assert.Equal(t, "cat", keyword.Keyword) + assert.Equal(t, false, keyword.Skip) + }) + t.Run("TABle", func(t *testing.T) { + keyword := NewKeyword("TABle") + assert.Equal(t, "table", keyword.Keyword) + assert.Equal(t, false, keyword.Skip) + }) +}