From c746da61fd60eeadb9084b51d1f88fe190da09a3 Mon Sep 17 00:00:00 2001 From: Myles Horton Date: Tue, 1 Sep 2015 21:17:47 -0700 Subject: [PATCH] small test for config --- .../getlantern/flashlight/config/config_test.go | 13 +++++++++++++ testpackages.txt | 1 + 2 files changed, 14 insertions(+) create mode 100644 src/github.com/getlantern/flashlight/config/config_test.go diff --git a/src/github.com/getlantern/flashlight/config/config_test.go b/src/github.com/getlantern/flashlight/config/config_test.go new file mode 100644 index 0000000000..8471578c2b --- /dev/null +++ b/src/github.com/getlantern/flashlight/config/config_test.go @@ -0,0 +1,13 @@ +package config + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestMajorVersion(t *testing.T) { + ver := majorVersion("22.0.2") + + assert.Equal(t, "2", ver, "Could not read version") +} diff --git a/testpackages.txt b/testpackages.txt index 63c7c1845e..28b543102c 100644 --- a/testpackages.txt +++ b/testpackages.txt @@ -12,6 +12,7 @@ github.com/getlantern/detour github.com/getlantern/enproxy github.com/getlantern/fdcount github.com/getlantern/flashlight +github.com/getlantern/flashlight/config github.com/getlantern/flashlight/logging github.com/getlantern/flashlight/packaged github.com/getlantern/flashlight/pubsub