@@ -129,8 +129,8 @@ class EverySpec extends UnitSpec {
129
129
}
130
130
}
131
131
it should " have an apply method" in {
132
- Every (1 , 2 , 3 )(0 ) shouldEqual 1
133
- Every (1 , 2 , 3 )(1 ) shouldEqual 2
132
+ Every (1 , 2 , 3 )(0 ) shouldEqual 1
133
+ Every (1 , 2 , 3 )(1 ) shouldEqual 2
134
134
One (" hi" )(0 ) shouldEqual " hi"
135
135
Many (7 , 8 , 9 )(2 ) shouldEqual 9
136
136
val vectorOutOfBoundsException = intercept[IndexOutOfBoundsException ] {
@@ -223,7 +223,7 @@ class EverySpec extends UnitSpec {
223
223
// Could have an implicit conversion from Every[Char] to CharSequence like
224
224
// there is for Seq in Predef.
225
225
/*
226
- scala> Vector(1, 2, 3, 4, 5, 6, 7, 8, 9, 10).collect { case i if i > 10 == 0 => i / 2 }
226
+ scala> Vector(1, 2, 3, 4, 5, 6, 7, 8, 9, 10).collect { case i if i > 10 == 0 => i / 2 }
227
227
res1: scala.collection.immutable.Vector[Int] = Vector()
228
228
*/
229
229
it should " have an collectFirst method" in {
@@ -325,7 +325,7 @@ class EverySpec extends UnitSpec {
325
325
}
326
326
327
327
/*
328
- it should not have an drop method
328
+ it should not have an drop method
329
329
scala> Vector(1, 2, 3).drop(3)
330
330
res1: scala.collection.immutable.Vector[Int] = Vector()
331
331
@@ -655,9 +655,11 @@ class EverySpec extends UnitSpec {
655
655
Every (- 1 , - 2 , 3 , 4 , 5 ).minBy(_.abs) shouldBe - 1
656
656
}
657
657
it should " have a mkString method" in {
658
-
658
+ // SKIP-DOTTY-START
659
+ // https://github.com/lampepfl/dotty/issues/6705
659
660
One (" hi" ).mkString shouldBe " hi"
660
661
Many (1 , 2 , 3 ).mkString shouldBe " 123"
662
+ // SKIP-DOTTY-END
661
663
662
664
One (" hi" ).mkString(" #" ) shouldBe " hi"
663
665
Many (1 , 2 , 3 ).mkString(" #" ) shouldBe " 1#2#3"
@@ -1013,7 +1015,7 @@ class EverySpec extends UnitSpec {
1013
1015
scala> Vector(1, 2, 3).take(-1)
1014
1016
res12: scala.collection.immutable.Vector[Int] = Vector()
1015
1017
1016
- it should not have a takeRight method
1018
+ it should not have a takeRight method
1017
1019
scala> Vector(1).takeRight(1)
1018
1020
res13: scala.collection.immutable.Vector[Int] = Vector(1)
1019
1021
scala> Vector(1).takeRight(0)
0 commit comments