@@ -25,7 +25,7 @@ class ExpectationsSpec extends FunSpec with Expectations {
25
25
26
26
describe(" The expectResult method" ) {
27
27
it(" should give a correct Fact result when the expectation fails" ) {
28
- val fact = expectResult(3 ) { 2 }
28
+ val fact = expectResult(3 ) { 2 }
29
29
assert(fact.isNo)
30
30
assert(fact.factMessage == " Expected 3, but got 2" )
31
31
assert(fact.simplifiedFactMessage == " 3 did not equal 2" )
@@ -43,7 +43,7 @@ class ExpectationsSpec extends FunSpec with Expectations {
43
43
assert(! fact.isVacuousYes)
44
44
}
45
45
it(" should give a correct Fact result when the expectation succeeds" ) {
46
- val fact = expectResult(3 ) { 3 }
46
+ val fact = expectResult(3 ) { 3 }
47
47
assert(fact.isYes)
48
48
assert(fact.factMessage == " Expected 3, and got 3" )
49
49
assert(fact.simplifiedFactMessage == " 3 equaled 3" )
@@ -118,11 +118,11 @@ class ExpectationsSpec extends FunSpec with Expectations {
118
118
assert(fact2.isNo)
119
119
assert(fact2.factMessage == " 3 equaled 3, but 4 equaled 4" )
120
120
assert(fact2.toString ==
121
- " No(" + NEWLINE +
122
- " Yes(expected 3, and got 3) &&" + NEWLINE +
123
- " No(" + NEWLINE +
124
- " !Yes(expected 4, and got 4)" + NEWLINE +
125
- " )" + NEWLINE +
121
+ " No(" + NEWLINE +
122
+ " Yes(expected 3, and got 3) &&" + NEWLINE +
123
+ " No(" + NEWLINE +
124
+ " !Yes(expected 4, and got 4)" + NEWLINE +
125
+ " )" + NEWLINE +
126
126
" )"
127
127
)
128
128
assert(! fact2.isVacuousYes)
@@ -206,7 +206,7 @@ class ExpectationsSpec extends FunSpec with Expectations {
206
206
" !Yes(expected 4, and got 4)" + NEWLINE +
207
207
" )" + NEWLINE +
208
208
" ) ||" + NEWLINE +
209
- " No(expected 5, but got 6)" + NEWLINE +
209
+ " No(expected 5, but got 6)" + NEWLINE +
210
210
" )"
211
211
)
212
212
assert(fact.toString ==
@@ -324,6 +324,7 @@ class ExpectationsSpec extends FunSpec with Expectations {
324
324
}
325
325
}
326
326
327
+ // SKIP-DOTTY-START
327
328
describe(" The expectThrows method" ) {
328
329
it(" should catch subtypes" ) {
329
330
class MyException extends RuntimeException
@@ -368,6 +369,7 @@ class ExpectationsSpec extends FunSpec with Expectations {
368
369
}
369
370
}
370
371
}
372
+ // SKIP-DOTTY-END
371
373
372
374
describe(" The expect method" ) {
373
375
@@ -525,6 +527,7 @@ class ExpectationsSpec extends FunSpec with Expectations {
525
527
assert(! fact.isVacuousYes)
526
528
}
527
529
530
+ // SKIP-DOTTY-START
528
531
it(" should return No with correct fact message when type check failed" ) {
529
532
val fact = expectCompiles(" val a: String = 2" )
530
533
assert(fact.isInstanceOf [Fact .Leaf ])
@@ -545,6 +548,7 @@ class ExpectationsSpec extends FunSpec with Expectations {
545
548
546
549
assert(! fact.isVacuousYes)
547
550
}
551
+ // SKIP-DOTTY-END
548
552
549
553
it(" should return Yes with correct fact message when the code compiles with implicit view in scope" ) {
550
554
import scala .collection .JavaConverters ._
@@ -581,6 +585,7 @@ class ExpectationsSpec extends FunSpec with Expectations {
581
585
assert(! fact.isVacuousYes)
582
586
}
583
587
588
+ // SKIP-DOTTY-START
584
589
it(" should return No with correct fact message when type check failed" ) {
585
590
val fact =
586
591
expectCompiles(
@@ -620,6 +625,7 @@ class ExpectationsSpec extends FunSpec with Expectations {
620
625
))
621
626
assert(! fact.isVacuousYes)
622
627
}
628
+ // SKIP-DOTTY-END
623
629
624
630
it(" should return Yes with correct fact message when the code compiles with implicit view in scope" ) {
625
631
import scala .collection .JavaConverters ._
@@ -663,6 +669,7 @@ class ExpectationsSpec extends FunSpec with Expectations {
663
669
assert(! fact.isVacuousYes)
664
670
}
665
671
672
+ // SKIP-DOTTY-START
666
673
it(" should return No with correct fact message when parse failed " ) {
667
674
val fact = expectTypeError(" println(\" test)" )
668
675
assert(fact.isInstanceOf [Fact .Leaf ])
@@ -673,6 +680,7 @@ class ExpectationsSpec extends FunSpec with Expectations {
673
680
assert(fact.factMessage == Resources .expectedTypeErrorButGotParseError(" unclosed string literal" , " println(\" test)" ))
674
681
assert(! fact.isVacuousYes)
675
682
}
683
+ // SKIP-DOTTY-END
676
684
677
685
it(" should return Yes with correct fact message when used with 'val i: Int = null'" ) {
678
686
val fact = expectTypeError(" val i: Int = null" )
@@ -735,6 +743,7 @@ class ExpectationsSpec extends FunSpec with Expectations {
735
743
assert(! fact.isVacuousYes)
736
744
}
737
745
746
+ // SKIP-DOTTY-START
738
747
it(" should return No with correct fact message when parse failed " ) {
739
748
val fact =
740
749
expectTypeError(
@@ -756,6 +765,7 @@ class ExpectationsSpec extends FunSpec with Expectations {
756
765
))
757
766
assert(! fact.isVacuousYes)
758
767
}
768
+ // SKIP-DOTTY-END
759
769
760
770
it(" should return Yes with correct fact message when used with 'val i: Int = null'" ) {
761
771
val fact =
0 commit comments