@@ -266,11 +266,10 @@ class NonEmptyArraySpec extends UnitSpec {
266
266
es.contains(" ONE" ) shouldBe false ;
267
267
// SKIP-DOTTY-START
268
268
// https://github.com/lampepfl/dotty/issues/6114
269
- {
270
- implicit val strEq : NormalizingEquality [String ] = StringNormalizations .lowerCased.toEquality
271
- es.contains(" one" ) shouldBe true ;
272
- es.contains(" ONE" ) shouldBe false
273
- }
269
+ implicit val strEq = StringNormalizations .lowerCased.toEquality
270
+ // DOTTY-ONLY implicit val strEq: NormalizingEquality[String] = StringNormalizations.lowerCased.toEquality
271
+ es.contains(" one" ) shouldBe true ;
272
+ es.contains(" ONE" ) shouldBe false
274
273
// SKIP-DOTTY-END
275
274
}
276
275
// Decided to just overload one for GenSeq and one for Every. Could have done
@@ -576,11 +575,10 @@ class NonEmptyArraySpec extends UnitSpec {
576
575
es.indexOf(" ONE" ) shouldBe - 1
577
576
// SKIP-DOTTY-START
578
577
// https://github.com/lampepfl/dotty/issues/6114
579
- {
580
- implicit val strEq : NormalizingEquality [String ] = StringNormalizations .lowerCased.toEquality
581
- es.indexOf(" one" ) shouldBe 0
582
- es.indexOf(" ONE" ) shouldBe - 1
583
- }
578
+ implicit val strEq = StringNormalizations .lowerCased.toEquality
579
+ // DOTTY-ONLY implicit val strEq: NormalizingEquality[String] = StringNormalizations.lowerCased.toEquality
580
+ es.indexOf(" one" ) shouldBe 0
581
+ es.indexOf(" ONE" ) shouldBe - 1
584
582
// SKIP-DOTTY-END
585
583
}
586
584
it should " have 2 indexOfSlice methods that take a GenSeq" in {
@@ -603,11 +601,10 @@ class NonEmptyArraySpec extends UnitSpec {
603
601
es.indexOfSlice(Array (" ONE" , " TWO" )) shouldBe - 1
604
602
// SKIP-DOTTY-START
605
603
// https://github.com/lampepfl/dotty/issues/6114
606
- {
607
- implicit val strEq : NormalizingEquality [String ] = StringNormalizations .lowerCased.toEquality
608
- es.indexOfSlice(Array (" one" , " two" )) shouldBe 0
609
- es.indexOfSlice(Array (" ONE" , " TWO" )) shouldBe - 1
610
- }
604
+ implicit val strEq = StringNormalizations .lowerCased.toEquality
605
+ // DOTTY-ONLY implicit val strEq: NormalizingEquality[String] = StringNormalizations.lowerCased.toEquality
606
+ es.indexOfSlice(Array (" one" , " two" )) shouldBe 0
607
+ es.indexOfSlice(Array (" ONE" , " TWO" )) shouldBe - 1
611
608
// SKIP-DOTTY-END
612
609
}
613
610
it should " have 2 indexOfSlice methods that take an Every" in {
@@ -627,11 +624,10 @@ class NonEmptyArraySpec extends UnitSpec {
627
624
es.indexOfSlice(Every (" ONE" , " TWO" )) shouldBe - 1
628
625
// SKIP-DOTTY-START
629
626
// https://github.com/lampepfl/dotty/issues/6114
630
- {
631
- implicit val strEq : NormalizingEquality [String ] = StringNormalizations .lowerCased.toEquality
632
- es.indexOfSlice(Every (" one" , " two" )) shouldBe 0
633
- es.indexOfSlice(Every (" ONE" , " TWO" )) shouldBe - 1
634
- }
627
+ implicit val strEq = StringNormalizations .lowerCased.toEquality
628
+ // DOTTY-ONLY implicit val strEq: NormalizingEquality[String] = StringNormalizations.lowerCased.toEquality
629
+ es.indexOfSlice(Every (" one" , " two" )) shouldBe 0
630
+ es.indexOfSlice(Every (" ONE" , " TWO" )) shouldBe - 1
635
631
// SKIP-DOTTY-END
636
632
}
637
633
it should " have 2 indexOfSlice methods that take a NonEmptyArray" in {
@@ -651,11 +647,10 @@ class NonEmptyArraySpec extends UnitSpec {
651
647
es.indexOfSlice(NonEmptyArray (" ONE" , " TWO" )) shouldBe - 1
652
648
// SKIP-DOTTY-START
653
649
// https://github.com/lampepfl/dotty/issues/6114
654
- {
655
- implicit val strEq : NormalizingEquality [String ] = StringNormalizations .lowerCased.toEquality
656
- es.indexOfSlice(NonEmptyArray (" one" , " two" )) shouldBe 0
657
- es.indexOfSlice(NonEmptyArray (" ONE" , " TWO" )) shouldBe - 1
658
- }
650
+ implicit val strEq = StringNormalizations .lowerCased.toEquality
651
+ // DOTTY-ONLY implicit val strEq: NormalizingEquality[String] = StringNormalizations.lowerCased.toEquality
652
+ es.indexOfSlice(NonEmptyArray (" one" , " two" )) shouldBe 0
653
+ es.indexOfSlice(NonEmptyArray (" ONE" , " TWO" )) shouldBe - 1
659
654
// SKIP-DOTTY-END
660
655
}
661
656
it should " have 2 indexWhere methods" in {
@@ -727,11 +722,10 @@ class NonEmptyArraySpec extends UnitSpec {
727
722
es.lastIndexOf(" ONE" ) shouldBe - 1
728
723
// SKIP-DOTTY-START
729
724
// https://github.com/lampepfl/dotty/issues/6114
730
- {
731
- implicit val strEq : NormalizingEquality [String ] = StringNormalizations .lowerCased.toEquality
732
- es.lastIndexOf(" one" ) shouldBe 0
733
- es.lastIndexOf(" ONE" ) shouldBe - 1
734
- }
725
+ implicit val strEq = StringNormalizations .lowerCased.toEquality
726
+ // DOTTY-ONLY implicit val strEq: NormalizingEquality[String] = StringNormalizations.lowerCased.toEquality
727
+ es.lastIndexOf(" one" ) shouldBe 0
728
+ es.lastIndexOf(" ONE" ) shouldBe - 1
735
729
// SKIP-DOTTY-END
736
730
}
737
731
it should " have 2 lastIndexOfSlice methods that take a GenSeq" in {
@@ -754,11 +748,10 @@ class NonEmptyArraySpec extends UnitSpec {
754
748
es.lastIndexOfSlice(Array (" ONE" , " TWO" )) shouldBe - 1
755
749
// SKIP-DOTTY-START
756
750
// https://github.com/lampepfl/dotty/issues/6114
757
- {
758
- implicit val strEq : NormalizingEquality [String ] = StringNormalizations .lowerCased.toEquality
759
- es.lastIndexOfSlice(Array (" one" , " two" )) shouldBe 0
760
- es.lastIndexOfSlice(Array (" ONE" , " TWO" )) shouldBe - 1
761
- }
751
+ implicit val strEq = StringNormalizations .lowerCased.toEquality
752
+ // DOTTY-ONLY implicit val strEq: NormalizingEquality[String] = StringNormalizations.lowerCased.toEquality
753
+ es.lastIndexOfSlice(Array (" one" , " two" )) shouldBe 0
754
+ es.lastIndexOfSlice(Array (" ONE" , " TWO" )) shouldBe - 1
762
755
// SKIP-DOTTY-END
763
756
}
764
757
it should " have 2 lastIndexOfSlice methods that take an Every" in {
@@ -778,11 +771,10 @@ class NonEmptyArraySpec extends UnitSpec {
778
771
es.lastIndexOfSlice(Every (" ONE" , " TWO" )) shouldBe - 1
779
772
// SKIP-DOTTY-START
780
773
// https://github.com/lampepfl/dotty/issues/6114
781
- {
782
- implicit val strEq : NormalizingEquality [String ] = StringNormalizations .lowerCased.toEquality
783
- es.lastIndexOfSlice(Every (" one" , " two" )) shouldBe 0
784
- es.lastIndexOfSlice(Every (" ONE" , " TWO" )) shouldBe - 1
785
- }
774
+ implicit val strEq = StringNormalizations .lowerCased.toEquality
775
+ // DOTTY-ONLY implicit val strEq: NormalizingEquality[String] = StringNormalizations.lowerCased.toEquality
776
+ es.lastIndexOfSlice(Every (" one" , " two" )) shouldBe 0
777
+ es.lastIndexOfSlice(Every (" ONE" , " TWO" )) shouldBe - 1
786
778
// SKIP-DOTTY-END
787
779
}
788
780
it should " have 2 lastIndexOfSlice methods that take a NonEmptyArray" in {
@@ -802,11 +794,10 @@ class NonEmptyArraySpec extends UnitSpec {
802
794
es.lastIndexOfSlice(NonEmptyArray (" ONE" , " TWO" )) shouldBe - 1
803
795
// SKIP-DOTTY-START
804
796
// https://github.com/lampepfl/dotty/issues/6114
805
- {
806
- implicit val strEq : NormalizingEquality [String ] = StringNormalizations .lowerCased.toEquality
807
- es.lastIndexOfSlice(NonEmptyArray (" one" , " two" )) shouldBe 0
808
- es.lastIndexOfSlice(NonEmptyArray (" ONE" , " TWO" )) shouldBe - 1
809
- }
797
+ implicit val strEq = StringNormalizations .lowerCased.toEquality
798
+ // DOTTY-ONLY implicit val strEq: NormalizingEquality[String] = StringNormalizations.lowerCased.toEquality
799
+ es.lastIndexOfSlice(NonEmptyArray (" one" , " two" )) shouldBe 0
800
+ es.lastIndexOfSlice(NonEmptyArray (" ONE" , " TWO" )) shouldBe - 1
810
801
// SKIP-DOTTY-END
811
802
}
812
803
it should " have 2 lastIndexWhere methods" in {
0 commit comments