@@ -16,12 +16,12 @@ func TestJoin(t *testing.T) {
16
16
Major string
17
17
}
18
18
19
- students := NewIterableFromSlice ([]student {
19
+ students := newIterableFromSlice ([]student {
20
20
{"1" , "Alice" },
21
21
{"2" , "Bob" },
22
22
{"3" , "Cindy" },
23
23
})
24
- majors := NewIterableFromSlice ([]studentMajor {
24
+ majors := newIterableFromSlice ([]studentMajor {
25
25
{"1" , "Math" },
26
26
{"1" , "Physics" },
27
27
{"2" , "English" },
@@ -53,7 +53,7 @@ func TestJoin(t *testing.T) {
53
53
t .Fatalf ("test Join, expect: %v, actual: %v" , expect , actual )
54
54
}
55
55
56
- students = NewIterableFromSlice ([]student {})
56
+ students = newIterableFromSlice ([]student {})
57
57
e = Join (students , majors , func (s student ) string {
58
58
return s .ID
59
59
}, func (m studentMajor ) string {
@@ -79,12 +79,12 @@ func TestJoinAs(t *testing.T) {
79
79
Name string
80
80
Major string
81
81
}
82
- students := NewIterableFromSlice ([]student {
82
+ students := newIterableFromSlice ([]student {
83
83
{"1" , "Alice" },
84
84
{"2" , "Bob" },
85
85
{"3" , "Cindy" },
86
86
})
87
- majors := NewIterableFromSlice ([]studentMajor {
87
+ majors := newIterableFromSlice ([]studentMajor {
88
88
{"1" , "Math" },
89
89
{"1" , "Physics" },
90
90
{"2" , "English" },
@@ -127,12 +127,12 @@ func TestGroupJoin(t *testing.T) {
127
127
Major string
128
128
}
129
129
130
- students := NewIterableFromSlice ([]student {
130
+ students := newIterableFromSlice ([]student {
131
131
{"1" , "Alice" },
132
132
{"2" , "Bob" },
133
133
{"3" , "Cindy" },
134
134
})
135
- majors := NewIterableFromSlice ([]studentMajor {
135
+ majors := newIterableFromSlice ([]studentMajor {
136
136
{"1" , "Math" },
137
137
{"1" , "Physics" },
138
138
{"2" , "English" },
@@ -173,7 +173,7 @@ func TestGroupJoin(t *testing.T) {
173
173
t .Fatalf ("test GroupJoin, expect: %v, actual: %v" , expect , actual )
174
174
}
175
175
176
- students = NewIterableFromSlice ([]student {})
176
+ students = newIterableFromSlice ([]student {})
177
177
e = GroupJoin (students , majors , func (s student ) string {
178
178
return s .ID
179
179
}, func (m studentMajor ) string {
0 commit comments