Skip to content

Commit 75e5a7e

Browse files
committed
Update 1680 test
1 parent 7c6a8bd commit 75e5a7e

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

leetcode/1680.Concatenation-of-Consecutive-Binary-Numbers/1680. Concatenation of Consecutive Binary Numbers_test.go

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,67 +5,67 @@ import (
55
"testing"
66
)
77

8-
type question5620 struct {
9-
para5620
10-
ans5620
8+
type question1680 struct {
9+
para1680
10+
ans1680
1111
}
1212

1313
// para 是参数
1414
// one 代表第一个参数
15-
type para5620 struct {
15+
type para1680 struct {
1616
n int
1717
}
1818

1919
// ans 是答案
2020
// one 代表第一个答案
21-
type ans5620 struct {
21+
type ans1680 struct {
2222
one int
2323
}
2424

25-
func Test_Problem5620(t *testing.T) {
25+
func Test_Problem1680(t *testing.T) {
2626

27-
qs := []question5620{
27+
qs := []question1680{
2828

2929
{
30-
para5620{1},
31-
ans5620{1},
30+
para1680{1},
31+
ans1680{1},
3232
},
3333

3434
{
35-
para5620{3},
36-
ans5620{27},
35+
para1680{3},
36+
ans1680{27},
3737
},
3838

3939
{
40-
para5620{12},
41-
ans5620{505379714},
40+
para1680{12},
41+
ans1680{505379714},
4242
},
4343

4444
{
45-
para5620{42},
46-
ans5620{727837408},
45+
para1680{42},
46+
ans1680{727837408},
4747
},
4848

4949
{
50-
para5620{24},
51-
ans5620{385951001},
50+
para1680{24},
51+
ans1680{385951001},
5252
},
5353

5454
{
55-
para5620{81},
56-
ans5620{819357292},
55+
para1680{81},
56+
ans1680{819357292},
5757
},
5858

5959
{
60-
para5620{66},
61-
ans5620{627730462},
60+
para1680{66},
61+
ans1680{627730462},
6262
},
6363
}
6464

65-
fmt.Printf("------------------------Leetcode Problem 5620------------------------\n")
65+
fmt.Printf("------------------------Leetcode Problem 1680------------------------\n")
6666

6767
for _, q := range qs {
68-
_, p := q.ans5620, q.para5620
68+
_, p := q.ans1680, q.para1680
6969
fmt.Printf("【input】:%v 【output】:%v\n", p, concatenatedBinary(p.n))
7070
}
7171
fmt.Printf("\n\n\n")

0 commit comments

Comments
 (0)