Skip to content

Commit 5f58eca

Browse files
committed
refactored multiline output, was pretty ugly
1 parent 101e1fa commit 5f58eca

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

util_test.go

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package l0la
2+
3+
import "testing"
4+
5+
func TestLPad(t *testing.T) {
6+
padded := LPad(20, "blah")
7+
if len(padded) != 20 {
8+
t.Error("should be padded to 20")
9+
}
10+
}
11+
12+
func TestFGroup(t *testing.T) {
13+
got := FGroup(1234567)
14+
want := "1,234,567"
15+
if got != want {
16+
t.Errorf("wanted %v got %v", want, got)
17+
}
18+
}

0 commit comments

Comments
 (0)