@@ -168,55 +168,55 @@ func TestArray(t *testing.T) {
168
168
checkError (t , "never tested" ,
169
169
td .Array ("test" , nil ),
170
170
expectedError {
171
- Message : mustBe ("Bad usage of Array operator" ),
171
+ Message : mustBe ("bad usage of Array operator" ),
172
172
Path : mustBe ("DATA" ),
173
173
Summary : mustBe ("usage: Array(ARRAY|&ARRAY, EXPECTED_ENTRIES), but received string as 1st parameter" ),
174
174
})
175
175
176
176
checkError (t , "never tested" ,
177
177
td .Array (& MyStruct {}, nil ),
178
178
expectedError {
179
- Message : mustBe ("Bad usage of Array operator" ),
179
+ Message : mustBe ("bad usage of Array operator" ),
180
180
Path : mustBe ("DATA" ),
181
181
Summary : mustBe ("usage: Array(ARRAY|&ARRAY, EXPECTED_ENTRIES), but received *td_test.MyStruct (ptr) as 1st parameter" ),
182
182
})
183
183
184
184
checkError (t , "never tested" ,
185
185
td .Array ([]int {}, nil ),
186
186
expectedError {
187
- Message : mustBe ("Bad usage of Array operator" ),
187
+ Message : mustBe ("bad usage of Array operator" ),
188
188
Path : mustBe ("DATA" ),
189
189
Summary : mustBe ("usage: Array(ARRAY|&ARRAY, EXPECTED_ENTRIES), but received []int (slice) as 1st parameter" ),
190
190
})
191
191
192
192
checkError (t , "never tested" ,
193
193
td .Array ([1 ]int {}, td.ArrayEntries {1 : 34 }),
194
194
expectedError {
195
- Message : mustBe ("Bad usage of Array operator" ),
195
+ Message : mustBe ("bad usage of Array operator" ),
196
196
Path : mustBe ("DATA" ),
197
197
Summary : mustBe ("array length is 1, so cannot have #1 expected index" ),
198
198
})
199
199
200
200
checkError (t , "never tested" ,
201
201
td .Array ([3 ]int {}, td.ArrayEntries {1 : nil }),
202
202
expectedError {
203
- Message : mustBe ("Bad usage of Array operator" ),
203
+ Message : mustBe ("bad usage of Array operator" ),
204
204
Path : mustBe ("DATA" ),
205
205
Summary : mustBe ("expected value of #1 cannot be nil as items type is int" ),
206
206
})
207
207
208
208
checkError (t , "never tested" ,
209
209
td .Array ([3 ]int {}, td.ArrayEntries {1 : "bad" }),
210
210
expectedError {
211
- Message : mustBe ("Bad usage of Array operator" ),
211
+ Message : mustBe ("bad usage of Array operator" ),
212
212
Path : mustBe ("DATA" ),
213
213
Summary : mustBe ("type string of #1 expected value differs from array contents (int)" ),
214
214
})
215
215
216
216
checkError (t , "never tested" ,
217
217
td .Array ([1 ]int {12 }, td.ArrayEntries {0 : 21 }),
218
218
expectedError {
219
- Message : mustBe ("Bad usage of Array operator" ),
219
+ Message : mustBe ("bad usage of Array operator" ),
220
220
Path : mustBe ("DATA" ),
221
221
Summary : mustBe ("non zero #0 entry in model already exists in expectedEntries" ),
222
222
})
@@ -455,39 +455,39 @@ func TestSlice(t *testing.T) {
455
455
checkError (t , "never tested" ,
456
456
td .Slice ("test" , nil ),
457
457
expectedError {
458
- Message : mustBe ("Bad usage of Slice operator" ),
458
+ Message : mustBe ("bad usage of Slice operator" ),
459
459
Path : mustBe ("DATA" ),
460
460
Summary : mustBe ("usage: Slice(SLICE|&SLICE, EXPECTED_ENTRIES), but received string as 1st parameter" ),
461
461
})
462
462
463
463
checkError (t , "never tested" ,
464
464
td .Slice (& MyStruct {}, nil ),
465
465
expectedError {
466
- Message : mustBe ("Bad usage of Slice operator" ),
466
+ Message : mustBe ("bad usage of Slice operator" ),
467
467
Path : mustBe ("DATA" ),
468
468
Summary : mustBe ("usage: Slice(SLICE|&SLICE, EXPECTED_ENTRIES), but received *td_test.MyStruct (ptr) as 1st parameter" ),
469
469
})
470
470
471
471
checkError (t , "never tested" ,
472
472
td .Slice ([0 ]int {}, nil ),
473
473
expectedError {
474
- Message : mustBe ("Bad usage of Slice operator" ),
474
+ Message : mustBe ("bad usage of Slice operator" ),
475
475
Path : mustBe ("DATA" ),
476
476
Summary : mustBe ("usage: Slice(SLICE|&SLICE, EXPECTED_ENTRIES), but received [0]int (array) as 1st parameter" ),
477
477
})
478
478
479
479
checkError (t , "never tested" ,
480
480
td .Slice ([]int {}, td.ArrayEntries {1 : "bad" }),
481
481
expectedError {
482
- Message : mustBe ("Bad usage of Slice operator" ),
482
+ Message : mustBe ("bad usage of Slice operator" ),
483
483
Path : mustBe ("DATA" ),
484
484
Summary : mustBe ("type string of #1 expected value differs from slice contents (int)" ),
485
485
})
486
486
487
487
checkError (t , "never tested" ,
488
488
td .Slice ([]int {12 }, td.ArrayEntries {0 : 21 }),
489
489
expectedError {
490
- Message : mustBe ("Bad usage of Slice operator" ),
490
+ Message : mustBe ("bad usage of Slice operator" ),
491
491
Path : mustBe ("DATA" ),
492
492
Summary : mustBe ("non zero #0 entry in model already exists in expectedEntries" ),
493
493
})
@@ -623,7 +623,7 @@ func TestSuperSliceOf(t *testing.T) {
623
623
checkError (t , "never tested" ,
624
624
td .SuperSliceOf (MyArray {}, td.ArrayEntries {8 : 34 }),
625
625
expectedError {
626
- Message : mustBe ("Bad usage of SuperSliceOf operator" ),
626
+ Message : mustBe ("bad usage of SuperSliceOf operator" ),
627
627
Path : mustBe ("DATA" ),
628
628
Summary : mustBe ("array length is 5, so cannot have #8 expected index" ),
629
629
})
@@ -701,31 +701,31 @@ func TestSuperSliceOf(t *testing.T) {
701
701
checkError (t , "never tested" ,
702
702
td .SuperSliceOf ("test" , nil ),
703
703
expectedError {
704
- Message : mustBe ("Bad usage of SuperSliceOf operator" ),
704
+ Message : mustBe ("bad usage of SuperSliceOf operator" ),
705
705
Path : mustBe ("DATA" ),
706
706
Summary : mustBe ("usage: SuperSliceOf(ARRAY|&ARRAY|SLICE|&SLICE, EXPECTED_ENTRIES), but received string as 1st parameter" ),
707
707
})
708
708
709
709
checkError (t , "never tested" ,
710
710
td .SuperSliceOf (& MyStruct {}, nil ),
711
711
expectedError {
712
- Message : mustBe ("Bad usage of SuperSliceOf operator" ),
712
+ Message : mustBe ("bad usage of SuperSliceOf operator" ),
713
713
Path : mustBe ("DATA" ),
714
714
Summary : mustBe ("usage: SuperSliceOf(ARRAY|&ARRAY|SLICE|&SLICE, EXPECTED_ENTRIES), but received *td_test.MyStruct (ptr) as 1st parameter" ),
715
715
})
716
716
717
717
checkError (t , "never tested" ,
718
718
td .SuperSliceOf ([]int {}, td.ArrayEntries {1 : "bad" }),
719
719
expectedError {
720
- Message : mustBe ("Bad usage of SuperSliceOf operator" ),
720
+ Message : mustBe ("bad usage of SuperSliceOf operator" ),
721
721
Path : mustBe ("DATA" ),
722
722
Summary : mustBe ("type string of #1 expected value differs from slice contents (int)" ),
723
723
})
724
724
725
725
checkError (t , "never tested" ,
726
726
td .SuperSliceOf ([]int {12 }, td.ArrayEntries {0 : 21 }),
727
727
expectedError {
728
- Message : mustBe ("Bad usage of SuperSliceOf operator" ),
728
+ Message : mustBe ("bad usage of SuperSliceOf operator" ),
729
729
Path : mustBe ("DATA" ),
730
730
Summary : mustBe ("non zero #0 entry in model already exists in expectedEntries" ),
731
731
})
0 commit comments