Skip to content

Commit b923c6b

Browse files
authored
Merge pull request #14 from timonwong/update-go
Add go module
2 parents a6ab0a9 + fe2b033 commit b923c6b

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea/
2+
.vscode/
23

34
# Binaries for programs and plugins
45
*.exe

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ go:
1010
- '1.9.x'
1111
- '1.10.x'
1212
- '1.11.x'
13+
- '1.12.x'
14+
- '1.13.x'
1315
- master
1416

1517
matrix:

format_test.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,14 @@ var (
9999
)
100100

101101
func TestFormat(t *testing.T) {
102-
103102
for i := range tc {
104-
c := tc[i]
105-
actual := strftime.Format(c.time, c.layout)
106-
if actual != c.expected {
107-
t.Errorf("Test layout `%s`: expected: %q; actual: %q", c.layout, c.expected, actual)
108-
}
103+
tt := tc[i]
104+
t.Run(tt.layout, func(t *testing.T) {
105+
t.Parallel()
106+
actual := strftime.Format(tt.time, tt.layout)
107+
if actual != tt.expected {
108+
t.Errorf("Test layout `%s`: expected: %q; actual: %q", tt.layout, tt.expected, actual)
109+
}
110+
})
109111
}
110112
}

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/imperfectgo/go-strftime
2+
3+
go 1.12

0 commit comments

Comments
 (0)