@@ -275,7 +275,7 @@ trait AsyncFlatSpecLike extends AsyncTestSuite with AsyncTestRegistration with S
275
275
* </p>
276
276
*/
277
277
def in (testFun : => Future [compatible.Assertion ])(implicit pos : source.Position ): Unit = {
278
- registerTestToRun(verb.trim + " " + name.trim, " in" , tags, testFun _ , pos)
278
+ registerTestToRun(verb.trim + " " + name.trim, " in" , tags, () => testFun , pos)
279
279
}
280
280
281
281
/**
@@ -297,7 +297,7 @@ trait AsyncFlatSpecLike extends AsyncTestSuite with AsyncTestRegistration with S
297
297
* </p>
298
298
*/
299
299
def is (testFun : => PendingStatement )(implicit pos : source.Position ): Unit = {
300
- registerPendingTestToRun(verb.trim + " " + name.trim, " is" , tags, testFun _ , pos)
300
+ registerPendingTestToRun(verb.trim + " " + name.trim, " is" , tags, () => testFun , pos)
301
301
}
302
302
303
303
/**
@@ -319,7 +319,7 @@ trait AsyncFlatSpecLike extends AsyncTestSuite with AsyncTestRegistration with S
319
319
* </p>
320
320
*/
321
321
def ignore (testFun : => Future [compatible.Assertion ])(implicit pos : source.Position ): Unit = {
322
- registerTestToIgnore(verb.trim + " " + name.trim, tags, " ignore" , testFun _ , pos)
322
+ registerTestToIgnore(verb.trim + " " + name.trim, tags, " ignore" , () => testFun , pos)
323
323
}
324
324
}
325
325
@@ -387,7 +387,7 @@ trait AsyncFlatSpecLike extends AsyncTestSuite with AsyncTestRegistration with S
387
387
* </p>
388
388
*/
389
389
def in (testFun : => Future [compatible.Assertion ])(implicit pos : source.Position ): Unit = {
390
- registerTestToRun(verb.trim + " " + name.trim, " in" , List (), testFun _ , pos)
390
+ registerTestToRun(verb.trim + " " + name.trim, " in" , List (), () => testFun , pos)
391
391
}
392
392
393
393
/**
@@ -408,7 +408,7 @@ trait AsyncFlatSpecLike extends AsyncTestSuite with AsyncTestRegistration with S
408
408
* </p>
409
409
*/
410
410
def is (testFun : => PendingStatement )(implicit pos : source.Position ): Unit = {
411
- registerPendingTestToRun(verb.trim + " " + name.trim, " is" , List (), testFun _ , pos)
411
+ registerPendingTestToRun(verb.trim + " " + name.trim, " is" , List (), () => testFun , pos)
412
412
}
413
413
414
414
/**
@@ -429,7 +429,7 @@ trait AsyncFlatSpecLike extends AsyncTestSuite with AsyncTestRegistration with S
429
429
* </p>
430
430
*/
431
431
def ignore (testFun : => Future [compatible.Assertion ])(implicit pos : source.Position ): Unit = {
432
- registerTestToIgnore(verb.trim + " " + name.trim, List (), " ignore" , testFun _ , pos)
432
+ registerTestToIgnore(verb.trim + " " + name.trim, List (), " ignore" , () => testFun , pos)
433
433
}
434
434
435
435
/**
@@ -681,7 +681,7 @@ trait AsyncFlatSpecLike extends AsyncTestSuite with AsyncTestRegistration with S
681
681
* </p>
682
682
*/
683
683
def in (testFun : => Future [compatible.Assertion ])(implicit pos : source.Position ): Unit = {
684
- registerTestToIgnore(verb.trim + " " + name.trim, tags, " in" , testFun _ , pos)
684
+ registerTestToIgnore(verb.trim + " " + name.trim, tags, " in" , () => testFun , pos)
685
685
}
686
686
687
687
/**
@@ -711,7 +711,7 @@ trait AsyncFlatSpecLike extends AsyncTestSuite with AsyncTestRegistration with S
711
711
* </p>
712
712
*/
713
713
def is (testFun : => PendingStatement )(implicit pos : source.Position ): Unit = {
714
- registerPendingTestToIgnore(verb.trim + " " + name.trim, tags, " is" , testFun _ , pos)
714
+ registerPendingTestToIgnore(verb.trim + " " + name.trim, tags, " is" , () => testFun , pos)
715
715
}
716
716
// Note: no def ignore here, so you can't put two ignores in the same line
717
717
}
@@ -778,7 +778,7 @@ trait AsyncFlatSpecLike extends AsyncTestSuite with AsyncTestRegistration with S
778
778
* </p>
779
779
*/
780
780
def in (testFun : => Future [compatible.Assertion ])(implicit pos : source.Position ): Unit = {
781
- registerTestToIgnore(verb.trim + " " + name.trim, List (), " in" , testFun _ , pos)
781
+ registerTestToIgnore(verb.trim + " " + name.trim, List (), " in" , () => testFun , pos)
782
782
}
783
783
784
784
/**
@@ -807,7 +807,7 @@ trait AsyncFlatSpecLike extends AsyncTestSuite with AsyncTestRegistration with S
807
807
* </p>
808
808
*/
809
809
def is (testFun : => PendingStatement )(implicit pos : source.Position ): Unit = {
810
- registerPendingTestToIgnore(verb.trim + " " + name.trim, List (), " is" , testFun _ , pos)
810
+ registerPendingTestToIgnore(verb.trim + " " + name.trim, List (), " is" , () => testFun , pos)
811
811
}
812
812
813
813
/**
@@ -990,7 +990,7 @@ trait AsyncFlatSpecLike extends AsyncTestSuite with AsyncTestRegistration with S
990
990
* </p>
991
991
*/
992
992
def in (testFun : => Future [compatible.Assertion ])(implicit pos : source.Position ): Unit = {
993
- registerTestToRun(verb.trim + " " + name.trim, " in" , tags, testFun _ , pos)
993
+ registerTestToRun(verb.trim + " " + name.trim, " in" , tags, () => testFun , pos)
994
994
}
995
995
996
996
/**
@@ -1012,7 +1012,7 @@ trait AsyncFlatSpecLike extends AsyncTestSuite with AsyncTestRegistration with S
1012
1012
* </p>
1013
1013
*/
1014
1014
def is (testFun : => PendingStatement )(implicit pos : source.Position ): Unit = {
1015
- registerPendingTestToRun(verb.trim + " " + name.trim, " is" , tags, testFun _ , pos)
1015
+ registerPendingTestToRun(verb.trim + " " + name.trim, " is" , tags, () => testFun , pos)
1016
1016
}
1017
1017
1018
1018
/**
@@ -1034,7 +1034,7 @@ trait AsyncFlatSpecLike extends AsyncTestSuite with AsyncTestRegistration with S
1034
1034
* </p>
1035
1035
*/
1036
1036
def ignore (testFun : => Future [compatible.Assertion ])(implicit pos : source.Position ): Unit = {
1037
- registerTestToIgnore(verb.trim + " " + name.trim, tags, " ignore" , testFun _ , pos)
1037
+ registerTestToIgnore(verb.trim + " " + name.trim, tags, " ignore" , () => testFun , pos)
1038
1038
}
1039
1039
}
1040
1040
@@ -1102,7 +1102,7 @@ trait AsyncFlatSpecLike extends AsyncTestSuite with AsyncTestRegistration with S
1102
1102
* </p>
1103
1103
*/
1104
1104
def in (testFun : => Future [compatible.Assertion ])(implicit pos : source.Position ): Unit = {
1105
- registerTestToRun(verb.trim + " " + name.trim, " in" , List (), testFun _ , pos)
1105
+ registerTestToRun(verb.trim + " " + name.trim, " in" , List (), () => testFun , pos)
1106
1106
}
1107
1107
1108
1108
/**
@@ -1123,7 +1123,7 @@ trait AsyncFlatSpecLike extends AsyncTestSuite with AsyncTestRegistration with S
1123
1123
* </p>
1124
1124
*/
1125
1125
def is (testFun : => PendingStatement )(implicit pos : source.Position ): Unit = {
1126
- registerPendingTestToRun(verb.trim + " " + name.trim, " is" , List (), testFun _ , pos)
1126
+ registerPendingTestToRun(verb.trim + " " + name.trim, " is" , List (), () => testFun , pos)
1127
1127
}
1128
1128
1129
1129
/**
@@ -1144,7 +1144,7 @@ trait AsyncFlatSpecLike extends AsyncTestSuite with AsyncTestRegistration with S
1144
1144
* </p>
1145
1145
*/
1146
1146
def ignore (testFun : => Future [compatible.Assertion ])(implicit pos : source.Position ): Unit = {
1147
- registerTestToIgnore(verb.trim + " " + name.trim, List (), " ignore" , testFun _ , pos)
1147
+ registerTestToIgnore(verb.trim + " " + name.trim, List (), " ignore" , () => testFun , pos)
1148
1148
}
1149
1149
1150
1150
/**
@@ -1403,7 +1403,7 @@ import resultOfStringPassedToVerb.verb
1403
1403
* </p>
1404
1404
*/
1405
1405
def in (testFun : => Future [compatible.Assertion ])(implicit pos : source.Position ): Unit = {
1406
- registerTestToRun(verb.trim + " " + rest.trim, " in" , List (), testFun _ , pos)
1406
+ registerTestToRun(verb.trim + " " + rest.trim, " in" , List (), () => testFun , pos)
1407
1407
}
1408
1408
1409
1409
/**
@@ -1424,7 +1424,7 @@ import resultOfStringPassedToVerb.verb
1424
1424
* </p>
1425
1425
*/
1426
1426
def ignore (testFun : => Future [compatible.Assertion ])(implicit pos : source.Position ): Unit = {
1427
- registerTestToIgnore(verb.trim + " " + rest.trim, List (), " ignore" , testFun _ , pos)
1427
+ registerTestToIgnore(verb.trim + " " + rest.trim, List (), " ignore" , () => testFun , pos)
1428
1428
}
1429
1429
}
1430
1430
@@ -1501,7 +1501,7 @@ import resultOfStringPassedToVerb.verb
1501
1501
* </p>
1502
1502
*/
1503
1503
def in (testFun : => Future [compatible.Assertion ])(implicit pos : source.Position ): Unit = {
1504
- registerTestToRun(verb.trim + " " + rest.trim, " in" , tagsList, testFun _ , pos)
1504
+ registerTestToRun(verb.trim + " " + rest.trim, " in" , tagsList, () => testFun , pos)
1505
1505
}
1506
1506
1507
1507
/**
@@ -1524,7 +1524,7 @@ import resultOfStringPassedToVerb.verb
1524
1524
* </p>
1525
1525
*/
1526
1526
def ignore (testFun : => Future [compatible.Assertion ])(implicit pos : source.Position ): Unit = {
1527
- registerTestToIgnore(verb.trim + " " + rest.trim, tagsList, " ignore" , testFun _ , pos)
1527
+ registerTestToIgnore(verb.trim + " " + rest.trim, tagsList, " ignore" , () => testFun , pos)
1528
1528
}
1529
1529
}
1530
1530
@@ -1565,7 +1565,7 @@ import resultOfStringPassedToVerb.verb
1565
1565
new ResultOfStringPassedToVerb (verb, rest) {
1566
1566
1567
1567
def is (testFun : => PendingStatement ): Unit = {
1568
- registerPendingTestToRun(verb.trim + " " + rest.trim, " is" , List (), testFun _ , pos)
1568
+ registerPendingTestToRun(verb.trim + " " + rest.trim, " is" , List (), () => testFun , pos)
1569
1569
}
1570
1570
// Note, won't have an is method that takes fixture => PendingStatement one, because don't want
1571
1571
// to say is (fixture => pending), rather just say is (pending)
@@ -1575,7 +1575,7 @@ import resultOfStringPassedToVerb.verb
1575
1575
// "A Stack" should "bla bla" taggedAs(SlowTest) is (pending)
1576
1576
// ^
1577
1577
def is (testFun : => PendingStatement ): Unit = {
1578
- registerPendingTestToRun(verb.trim + " " + rest.trim, " is" , tags, testFun _ , pos)
1578
+ registerPendingTestToRun(verb.trim + " " + rest.trim, " is" , tags, () => testFun , pos)
1579
1579
}
1580
1580
}
1581
1581
}
0 commit comments