Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Scala.js spelling #1815

Open
wants to merge 3 commits into
base: 3.1.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -35,7 +35,7 @@ class NumericEqualityConstraintsSpec extends FunSpec with TypeCheckedTripleEqual
val aLong: Long = 99L
val aFloat: Float = 99.0F
val aDouble: Double = 99.0
// TODO: To re-enable this once scala.js support big numbers
// TODO: To re-enable this once Scala.js support big numbers
// SKIP-SCALATESTJS,NATIVE-START
val aBigInt: BigInt = BigInt(99)
val aBigDecimal: BigDecimal = BigDecimal(99.0)
Expand All @@ -49,7 +49,7 @@ class NumericEqualityConstraintsSpec extends FunSpec with TypeCheckedTripleEqual
assert(aChar === aLong)
assert(aChar === aFloat)
assert(aChar === aDouble)
// TODO: To re-enable this once scala.js support big numbers
// TODO: To re-enable this once Scala.js support big numbers
// SKIP-SCALATESTJS,NATIVE-START
assert(aChar === aBigInt)
assert(aChar === aBigDecimal)
Expand All @@ -61,7 +61,7 @@ class NumericEqualityConstraintsSpec extends FunSpec with TypeCheckedTripleEqual
assert(aByte === aLong)
assert(aByte === aFloat)
assert(aByte === aDouble)
// TODO: To re-enable this once scala.js support big numbers
// TODO: To re-enable this once Scala.js support big numbers
// SKIP-SCALATESTJS,NATIVE-START
assert(aByte === aBigInt)
assert(aByte === aBigDecimal)
Expand All @@ -73,7 +73,7 @@ class NumericEqualityConstraintsSpec extends FunSpec with TypeCheckedTripleEqual
assert(aShort === aLong)
assert(aShort === aFloat)
assert(aShort === aDouble)
// TODO: To re-enable this once scala.js support big numbers
// TODO: To re-enable this once Scala.js support big numbers
// SKIP-SCALATESTJS,NATIVE-START
assert(aShort === aBigInt)
assert(aShort === aBigDecimal)
Expand All @@ -84,7 +84,7 @@ class NumericEqualityConstraintsSpec extends FunSpec with TypeCheckedTripleEqual
assert(anInt === aLong)
assert(anInt === aFloat)
assert(anInt === aDouble)
// TODO: To re-enable this once scala.js support big numbers
// TODO: To re-enable this once Scala.js support big numbers
// SKIP-SCALATESTJS,NATIVE-START
assert(anInt === aBigInt)
assert(anInt === aBigDecimal)
Expand All @@ -94,7 +94,7 @@ class NumericEqualityConstraintsSpec extends FunSpec with TypeCheckedTripleEqual

assert(aLong === aFloat)
assert(aLong === aDouble)
// TODO: To re-enable this once scala.js support big numbers
// TODO: To re-enable this once Scala.js support big numbers
// SKIP-SCALATESTJS,NATIVE-START
assert(aLong === aBigInt)
assert(aLong === aBigDecimal)
Expand All @@ -103,23 +103,23 @@ class NumericEqualityConstraintsSpec extends FunSpec with TypeCheckedTripleEqual
// assert(aLong == aJavaBigDecimal)

assert(aFloat === aDouble)
// TODO: To re-enable this once scala.js support big numbers
// TODO: To re-enable this once Scala.js support big numbers
// SKIP-SCALATESTJS,NATIVE-START
assert(aFloat === aBigInt)
assert(aFloat === aBigDecimal)
// SKIP-SCALATESTJS,NATIVE-END
// assert(aFloat == aJavaBigInteger)
// assert(aFloat == aJavaBigDecimal)

// TODO: To re-enable this once scala.js support big numbers
// TODO: To re-enable this once Scala.js support big numbers
// SKIP-SCALATESTJS,NATIVE-START
assert(aDouble === aBigInt)
assert(aDouble === aBigDecimal)
// SKIP-SCALATESTJS,NATIVE-END
// assert(aDouble == aJavaBigInteger)
// assert(aDouble == aJavaBigDecimal)

// TODO: To re-enable this once scala.js support big numbers
// TODO: To re-enable this once Scala.js support big numbers
// SKIP-SCALATESTJS,NATIVE-START
assert(aBigInt === aBigDecimal)
// SKIP-SCALATESTJS,NATIVE-END
Expand Down
Expand Up @@ -51,7 +51,7 @@ trait FiniteDoubleSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -33,7 +33,7 @@ trait NegDoubleSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -33,7 +33,7 @@ trait NegFiniteDoubleSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -28,7 +28,7 @@ trait NegIntSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -31,7 +31,7 @@ trait NegLongSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -51,7 +51,7 @@ trait NegZDoubleSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -51,7 +51,7 @@ trait NegZFiniteDoubleSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -29,7 +29,7 @@ trait NegZIntSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -32,7 +32,7 @@ trait NegZLongSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -33,7 +33,7 @@ trait NonZeroDoubleSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -33,7 +33,7 @@ trait NonZeroFiniteDoubleSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -27,7 +27,7 @@ trait NonZeroIntSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -31,7 +31,7 @@ trait NonZeroLongSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -32,7 +32,7 @@ trait NumericCharSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -33,7 +33,7 @@ trait PosDoubleSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -33,7 +33,7 @@ trait PosFiniteDoubleSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -28,7 +28,7 @@ trait PosIntSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -31,7 +31,7 @@ trait PosLongSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -51,7 +51,7 @@ trait PosZDoubleSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -51,7 +51,7 @@ trait PosZFiniteDoubleSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -31,7 +31,7 @@ trait PosZIntSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down
Expand Up @@ -34,7 +34,7 @@ trait PosZLongSpecSupport {

implicit def tryEquality[T]: Equality[Try[T]] = new Equality[Try[T]] {
override def areEqual(a: Try[T], b: Any): Boolean = a match {
case Success(double: Double) if double.isNaN => // This is because in scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
case Success(double: Double) if double.isNaN => // This is because in Scala.js x/0 results to NaN not ArithmetricException like in jvm, and we need to make sure Success(NaN) == Success(NaN) is true to pass the test.
b match {
case Success(bDouble: Double) if bDouble.isNaN => true
case _ => false
Expand Down