parse test coverage

This commit is contained in:
Derek Collison
2016-05-04 13:59:48 -07:00
parent 9b41ee00aa
commit 296227e46e

View File

@@ -3,6 +3,7 @@ package conf
import (
"reflect"
"testing"
"time"
)
// Test to make sure we get what we expect.
@@ -130,3 +131,18 @@ func TestSample4(t *testing.T) {
}
test(t, sample4, ex)
}
var sample5 = `
now = 2016-05-04T18:53:41Z
gmt = false
`
func TestSample5(t *testing.T) {
dt, _ := time.Parse("2006-01-02T15:04:05Z", "2016-05-04T18:53:41Z")
ex := map[string]interface{}{
"now": dt,
"gmt": false,
}
test(t, sample5, ex)
}