Skip to content

Commit

Permalink
small test for config
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Sep 2, 2015
1 parent 14feada commit c746da6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/github.com/getlantern/flashlight/config/config_test.go
Original file line number Diff line number Diff line change
@@ -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")
}
1 change: 1 addition & 0 deletions testpackages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c746da6

Please sign in to comment.