Skip to content

Commit b954aa6

Browse files
committed
adjust tests to match the new idea
1 parent 89156fb commit b954aa6

21 files changed

+71
-71
lines changed

testdata/day.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ func main() {
2828
ck(Friday, "Friday")
2929
ck(Saturday, "Saturday")
3030
ck(Sunday, "Sunday")
31-
ck(-127, "Day(-127)")
32-
ck(127, "Day(127)")
31+
ck(-127, "")
32+
ck(127, "")
3333
ckDayString(Sunday, "Sunday")
3434
ckDayString(Sunday, "sunday")
3535

testdata/gap.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ const (
2222
)
2323

2424
func main() {
25-
ck(0, "Gap(0)")
26-
ck(1, "Gap(1)")
25+
ck(0, "")
26+
ck(1, "")
2727
ck(Two, "Two")
2828
ck(Three, "Three")
29-
ck(4, "Gap(4)")
29+
ck(4, "")
3030
ck(Five, "Five")
3131
ck(Six, "Six")
3232
ck(Seven, "Seven")
3333
ck(Eight, "Eight")
3434
ck(Nine, "Nine")
35-
ck(10, "Gap(10)")
35+
ck(10, "")
3636
ck(Eleven, "Eleven")
37-
ck(12, "Gap(12)")
37+
ck(12, "")
3838
}
3939

4040
func ck(gap Gap, str string) {

testdata/num.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ const (
1919
)
2020

2121
func main() {
22-
ck(-3, "Num(-3)")
22+
ck(-3, "")
2323
ck(m_2, "m_2")
2424
ck(m_1, "m_1")
2525
ck(m0, "m0")
2626
ck(m1, "m1")
2727
ck(m2, "m2")
28-
ck(3, "Num(3)")
28+
ck(3, "")
2929
}
3030

3131
func ck(num Num, str string) {

testdata/number.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func main() {
2424
ck(Two, "Two")
2525
ck(Three, "Three")
2626
ck(AnotherOne, "One")
27-
ck(127, "Number(127)")
27+
ck(127, "")
2828
}
2929

3030
func ck(num Number, str string) {

testdata/prime.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ const (
2929
)
3030

3131
func main() {
32-
ck(0, "Prime(0)")
33-
ck(1, "Prime(1)")
32+
ck(0, "")
33+
ck(1, "")
3434
ck(p2, "p2")
3535
ck(p3, "p3")
36-
ck(4, "Prime(4)")
36+
ck(4, "")
3737
ck(p5, "p5")
3838
ck(p7, "p7")
3939
ck(p77, "p7")
@@ -46,7 +46,7 @@ func main() {
4646
ck(p37, "p37")
4747
ck(p41, "p41")
4848
ck(p43, "p43")
49-
ck(44, "Prime(44)")
49+
ck(44, "")
5050
}
5151

5252
func ck(prime Prime, str string) {

testdata/thresholdeq.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,25 @@ const (
1818
)
1919

2020
func main() {
21-
ck(1, "Thresholdeq(1)")
21+
ck(1, "")
2222
ck(req1, "req1")
23-
ck(3, "Thresholdeq(3)")
23+
ck(3, "")
2424
ck(req2, "req2")
25-
ck(5, "Thresholdeq(5)")
25+
ck(5, "")
2626
ck(req3, "req3")
27-
ck(7, "Thresholdeq(7)")
27+
ck(7, "")
2828
ck(req4, "req4")
29-
ck(9, "Thresholdeq(9)")
29+
ck(9, "")
3030
ck(req5, "req5")
31-
ck(11, "Thresholdeq(11)")
31+
ck(11, "")
3232
ck(req6, "req6")
33-
ck(13, "Thresholdeq(13)")
33+
ck(13, "")
3434
ck(req7, "req7")
35-
ck(15, "Thresholdeq(15)")
35+
ck(15, "")
3636
ck(req8, "req8")
37-
ck(17, "Thresholdeq(17)")
37+
ck(17, "")
3838
ck(req9, "req9")
39-
ck(19, "Thresholdeq(19)")
39+
ck(19, "")
4040
ck(req10, "req10")
4141
}
4242

testdata/thresholdgt.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,32 +19,32 @@ const (
1919
)
2020

2121
func main() {
22-
ck(1, "Thresholdgt(1)")
22+
ck(1, "")
2323
ck(rgt1, "rgt1")
24-
ck(3, "Thresholdgt(3)")
24+
ck(3, "")
2525
ck(rgt2, "rgt2")
26-
ck(5, "Thresholdgt(5)")
26+
ck(5, "")
2727
ck(rgt3, "rgt3")
28-
ck(7, "Thresholdgt(7)")
28+
ck(7, "")
2929
ck(rgt4, "rgt4")
30-
ck(9, "Thresholdgt(9)")
30+
ck(9, "")
3131
ck(rgt5, "rgt5")
32-
ck(11, "Thresholdgt(11)")
32+
ck(11, "")
3333
ck(rgt6, "rgt6")
34-
ck(13, "Thresholdgt(13)")
34+
ck(13, "")
3535
ck(rgt7, "rgt7")
36-
ck(15, "Thresholdgt(15)")
36+
ck(15, "")
3737
ck(rgt8, "rgt8")
38-
ck(17, "Thresholdgt(17)")
38+
ck(17, "")
3939
ck(rgt9, "rgt9")
40-
ck(19, "Thresholdgt(19)")
40+
ck(19, "")
4141
ck(rgt10, "rgt10")
42-
ck(21, "Thresholdgt(21)")
42+
ck(21, "")
4343
ck(rgt11, "rgt11")
4444
}
4545

4646
func ck(thresholdgt Thresholdgt, str string) {
4747
if fmt.Sprint(thresholdgt) != str {
4848
panic("thresholdgt.go: " + str)
4949
}
50-
}
50+
}

testdata/thresholdlt.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ const (
1717
)
1818

1919
func main() {
20-
ck(1, "Thresholdlt(1)")
20+
ck(1, "")
2121
ck(rlt1, "rlt1")
22-
ck(3, "Thresholdlt(3)")
22+
ck(3, "")
2323
ck(rlt2, "rlt2")
24-
ck(5, "Thresholdlt(5)")
24+
ck(5, "")
2525
ck(rlt3, "rlt3")
26-
ck(7, "Thresholdlt(7)")
26+
ck(7, "")
2727
ck(rlt4, "rlt4")
28-
ck(9, "Thresholdlt(9)")
28+
ck(9, "")
2929
ck(rlt5, "rlt5")
30-
ck(11, "Thresholdlt(11)")
30+
ck(11, "")
3131
ck(rlt6, "rlt6")
32-
ck(13, "Thresholdlt(13)")
32+
ck(13, "")
3333
ck(rlt7, "rlt7")
34-
ck(15, "Thresholdlt(15)")
34+
ck(15, "")
3535
ck(rlt8, "rlt8")
36-
ck(17, "Thresholdlt(17)")
36+
ck(17, "")
3737
ck(rlt9, "rlt9")
3838
}
3939

testdata/transform_first.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ func main() {
1414
ck(Male, "M")
1515
ck(Female, "F")
1616
ck(unknown, "u")
17-
ck(-127, "FirstCaseValue(-127)")
18-
ck(127, "FirstCaseValue(127)")
17+
ck(-127, "")
18+
ck(127, "")
1919
}
2020

2121
func ck(value FirstCaseValue, str string) {

testdata/transform_first_lower.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ func main() {
1414
ck(Male, "m")
1515
ck(Female, "f")
1616
ck(Unknown, "u")
17-
ck(-127, "FirstLowerCaseValue(-127)")
18-
ck(127, "FirstLowerCaseValue(127)")
17+
ck(-127, "")
18+
ck(127, "")
1919
}
2020

2121
func ck(value FirstLowerCaseValue, str string) {

0 commit comments

Comments
 (0)