@@ -1623,7 +1623,6 @@ class AssertionsSpec extends AnyFunSpec {
1623
1623
assert(e.failedCodeLineNumber == (Some (thisLineNumber - 4 )))
1624
1624
}
1625
1625
1626
- // SKIP-DOTTY-START
1627
1626
it(" should do nothing when is used to check l1.exists(_ == 3)" ) {
1628
1627
assert(l1.exists(_ == 3 ))
1629
1628
}
@@ -1650,7 +1649,6 @@ class AssertionsSpec extends AnyFunSpec {
1650
1649
assert(e.failedCodeFileName == (Some (fileName)))
1651
1650
assert(e.failedCodeLineNumber == (Some (thisLineNumber - 4 )))
1652
1651
}
1653
- // SKIP-DOTTY-END
1654
1652
1655
1653
it(" should do nothing when is used to check !l1.exists(_ == 5)" ) {
1656
1654
assert(! l1.exists(_ == 5 ))
@@ -1659,8 +1657,7 @@ class AssertionsSpec extends AnyFunSpec {
1659
1657
it(" should do nothing when is used to check !l1.exists(5 == _)" ) {
1660
1658
assert(! l1.exists(5 == _))
1661
1659
}
1662
- // SKIP-DOTTY-START
1663
- // TODO: better handle exists
1660
+
1664
1661
it(" should throw TestFailedException with correct message and stack depth when is used to check !l1.exists(_ == 3)" ) {
1665
1662
val e = intercept[TestFailedException ] {
1666
1663
assert(! l1.exists(_ == 3 ))
@@ -1679,6 +1676,8 @@ class AssertionsSpec extends AnyFunSpec {
1679
1676
assert(e.failedCodeLineNumber == (Some (thisLineNumber - 4 )))
1680
1677
}
1681
1678
1679
+ // SKIP-DOTTY-START
1680
+ // different printing of anonymous functions
1682
1681
it(" should throw TestFailedException with correct message and stack depth when is used to check l1.exists(_ > 3)" ) {
1683
1682
val e = intercept[TestFailedException ] {
1684
1683
assert(l1.exists(_ > 3 ))
@@ -1705,6 +1704,7 @@ class AssertionsSpec extends AnyFunSpec {
1705
1704
assert(e.failedCodeFileName == (Some (fileName)))
1706
1705
assert(e.failedCodeLineNumber == (Some (thisLineNumber - 4 )))
1707
1706
}
1707
+ // SKIP-DOTTY-END
1708
1708
1709
1709
it(" should throw TestFailedException with correct message and stack depth when is used to check l3.exists(false)" ) {
1710
1710
val e = intercept[TestFailedException ] {
@@ -1714,7 +1714,6 @@ class AssertionsSpec extends AnyFunSpec {
1714
1714
assert(e.failedCodeFileName == (Some (fileName)))
1715
1715
assert(e.failedCodeLineNumber == (Some (thisLineNumber - 4 )))
1716
1716
}
1717
- // SKIP-DOTTY-END
1718
1717
1719
1718
def woof (f : => Unit ) = " woof"
1720
1719
def meow (x : Int = 0 , y : Int = 3 ) = " meow"
@@ -4549,8 +4548,6 @@ class AssertionsSpec extends AnyFunSpec {
4549
4548
assert(e.failedCodeLineNumber == (Some (thisLineNumber - 4 )))
4550
4549
}
4551
4550
4552
- // SKIP-DOTTY-START
4553
- // missing support for exists
4554
4551
it(" should do nothing when is used to check l1.exists(_ == 3)" ) {
4555
4552
assume(l1.exists(_ == 3 ))
4556
4553
}
@@ -4603,6 +4600,8 @@ class AssertionsSpec extends AnyFunSpec {
4603
4600
assert(e.failedCodeLineNumber == (Some (thisLineNumber - 4 )))
4604
4601
}
4605
4602
4603
+ // SKIP-DOTTY-START
4604
+ // different printing of anonymous function
4606
4605
it(" should throw TestCanceledException with correct message and stack depth when is used to check l1.exists(_ > 3)" ) {
4607
4606
val e = intercept[TestCanceledException ] {
4608
4607
assume(l1.exists(_ > 3 ))
@@ -4629,6 +4628,7 @@ class AssertionsSpec extends AnyFunSpec {
4629
4628
assert(e.failedCodeFileName == (Some (fileName)))
4630
4629
assert(e.failedCodeLineNumber == (Some (thisLineNumber - 4 )))
4631
4630
}
4631
+ // SKIP-DOTTY-END
4632
4632
4633
4633
it(" should throw TestCanceledException with correct message and stack depth when is used to check l3.exists(false)" ) {
4634
4634
val e = intercept[TestCanceledException ] {
@@ -4638,7 +4638,6 @@ class AssertionsSpec extends AnyFunSpec {
4638
4638
assert(e.failedCodeFileName == (Some (fileName)))
4639
4639
assert(e.failedCodeLineNumber == (Some (thisLineNumber - 4 )))
4640
4640
}
4641
- // SKIP-DOTTY-END
4642
4641
4643
4642
def woof (f : => Unit ) = " woof"
4644
4643
def meow (x : Int = 0 , y : Int = 3 ) = " meow"
@@ -6012,8 +6011,6 @@ class AssertionsSpec extends AnyFunSpec {
6012
6011
assert(e.failedCodeLineNumber == (Some (thisLineNumber - 4 )))
6013
6012
}
6014
6013
6015
- // SKIP-DOTTY-START
6016
- // missing support for exists
6017
6014
it(" should do nothing when is used to check l1.exists(_ == 3)" ) {
6018
6015
assume(l1.exists(_ == 3 ), " , dude" )
6019
6016
}
@@ -6066,6 +6063,8 @@ class AssertionsSpec extends AnyFunSpec {
6066
6063
assert(e.failedCodeLineNumber == (Some (thisLineNumber - 4 )))
6067
6064
}
6068
6065
6066
+ // SKIP-DOTTY-START
6067
+ // different printing for anonymous functions
6069
6068
it(" should throw TestCanceledException with correct message and stack depth when is used to check l1.exists(_ > 3)" ) {
6070
6069
val e = intercept[TestCanceledException ] {
6071
6070
assume(l1.exists(_ > 3 ), " , dude" )
@@ -6092,6 +6091,7 @@ class AssertionsSpec extends AnyFunSpec {
6092
6091
assert(e.failedCodeFileName == (Some (fileName)))
6093
6092
assert(e.failedCodeLineNumber == (Some (thisLineNumber - 4 )))
6094
6093
}
6094
+ // SKIP-DOTTY-END
6095
6095
6096
6096
it(" should throw TestCanceledException with correct message and stack depth when is used to check l3.exists(false)" ) {
6097
6097
val e = intercept[TestCanceledException ] {
@@ -6101,7 +6101,6 @@ class AssertionsSpec extends AnyFunSpec {
6101
6101
assert(e.failedCodeFileName == (Some (fileName)))
6102
6102
assert(e.failedCodeLineNumber == (Some (thisLineNumber - 4 )))
6103
6103
}
6104
- // SKIP-DOTTY-END
6105
6104
6106
6105
def woof (f : => Unit ) = " woof"
6107
6106
def meow (x : Int = 0 , y : Int = 3 ) = " meow"
0 commit comments