Skip to content

Commit

Permalink
be compatible with post-M4 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue committed Jun 28, 2018
1 parent 583ee22 commit 448a22c
Show file tree
Hide file tree
Showing 40 changed files with 65 additions and 54 deletions.
2 changes: 1 addition & 1 deletion project/GenFactories.scala
Expand Up @@ -32,7 +32,7 @@ import org.scalatest.MatchersHelper.orMatchersAndApply
import org.scalatest.words.MatcherWords
import scala.collection.GenTraversable
import scala.util.matching.Regex
import org.scalactic._
import org.scalactic.{ exceptions => _, _ }
import TripleEqualsSupport.Spread
import TripleEqualsSupport.TripleEqualsInvocation
import org.scalatest.FailureMessages
Expand Down
2 changes: 1 addition & 1 deletion scalatest/src/main/scala/org/scalatest/Assertions.scala
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ exceptions => _, Resources => _, FailureMessages => _, _ }
import Requirements._
import ArrayHelper.deep
import scala.reflect.ClassTag
Expand Down
2 changes: 1 addition & 1 deletion scalatest/src/main/scala/org/scalatest/AsyncEngine.scala
Expand Up @@ -16,7 +16,7 @@
package org.scalatest

import org.scalactic.Requirements._
import org.scalactic._
import org.scalactic.{ exceptions => _, Resources => _, _ }
import org.scalatest.Suite._
import java.util.ConcurrentModificationException
import java.util.concurrent.atomic.AtomicReference
Expand Down
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ exceptions => _, FailureMessages => _, UnquotedString => _, Resources => _, _ }
import scala.concurrent.Future
import Suite.anExceptionThatShouldCauseAnAbort
import Suite.autoTagClassAnnotations
Expand Down
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ exceptions => _, Resources => _, _ }
import scala.concurrent.Future
import Suite.anExceptionThatShouldCauseAnAbort
import Suite.autoTagClassAnnotations
Expand Down
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ exceptions => _, FailureMessages => _, UnquotedString => _, Resources => _, _ }
import scala.concurrent.Future
import Suite.anExceptionThatShouldCauseAnAbort
import Suite.autoTagClassAnnotations
Expand Down
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ exceptions => _, FailureMessages => _, UnquotedString => _, Resources => _, _ }
import scala.concurrent.Future
import Suite.autoTagClassAnnotations
import words.BehaveWord
Expand Down
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ Resources => _, _ }
import scala.concurrent.Future
import Suite.autoTagClassAnnotations

Expand Down
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ exceptions => _, FailureMessages => _, UnquotedString => _, Resources => _, _ }
import scala.concurrent.Future
import Suite.anExceptionThatShouldCauseAnAbort
import Suite.autoTagClassAnnotations
Expand Down
2 changes: 1 addition & 1 deletion scalatest/src/main/scala/org/scalatest/CompileMacro.scala
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ exceptions => _, _ }
import org.scalatest.words.{TypeCheckWord, CompileWord}
import scala.reflect.macros.{ Context, TypecheckException, ParseException }
import org.scalatest.exceptions.StackDepthException
Expand Down
5 changes: 4 additions & 1 deletion scalatest/src/main/scala/org/scalatest/ConfigMap.scala
Expand Up @@ -107,7 +107,10 @@ class ConfigMap(underlying: scala.collection.Map[String, Any]) extends scala.col

override def +[A >: Any](kv: (String, A)): ConfigMap = new ConfigMap(underlying + kv)

def -(key: String): ConfigMap = new ConfigMap(underlying.filter(_._1 != key))
def -(key: String): ConfigMap =
new ConfigMap(underlying.filter(_._1 != key))
def -(key1: String, key2: String, keys: String*): ConfigMap =
new ConfigMap(underlying.filter{case (k, _) => k != key1 && k != key2 && !keys.contains(k)})

override def empty: ConfigMap = new ConfigMap(Map.empty[String, Any])

Expand Down
2 changes: 1 addition & 1 deletion scalatest/src/main/scala/org/scalatest/Engine.scala
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ exceptions => _, _ }
import Requirements._
import org.scalatest.Suite._
import java.util.ConcurrentModificationException
Expand Down
2 changes: 1 addition & 1 deletion scalatest/src/main/scala/org/scalatest/Fact.scala
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ UnquotedString => _, _ }
import org.scalatest.exceptions.StackDepthException
import org.scalatest.exceptions.TestFailedException
import org.scalatest.exceptions.TestCanceledException
Expand Down
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ exceptions => _, FailureMessages => _, UnquotedString => _, _ }
import Suite.anExceptionThatShouldCauseAnAbort
import Suite.autoTagClassAnnotations
import java.util.ConcurrentModificationException
Expand Down
2 changes: 1 addition & 1 deletion scalatest/src/main/scala/org/scalatest/FreeSpecLike.scala
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ exceptions => _, FailureMessages => _, UnquotedString => _, _ }
import Suite.anExceptionThatShouldCauseAnAbort
import Suite.autoTagClassAnnotations
import java.util.ConcurrentModificationException
Expand Down
2 changes: 1 addition & 1 deletion scalatest/src/main/scala/org/scalatest/FunSpecLike.scala
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ exceptions => _, FailureMessages => _, UnquotedString => _, _ }
import Suite.autoTagClassAnnotations
import words.BehaveWord

Expand Down
Expand Up @@ -22,7 +22,8 @@ private[scalatest] class InsertionOrderSet[A](elements: scala.collection.Seq[A])
def contains(key: A): Boolean = list.contains(key)
def iterator: Iterator[A] = list.iterator
override def +(elem: A) = InsertionOrderSet[A](list :+ elem)
def -(elem: A) = InsertionOrderSet[A](list.filter(_ != elem))
override def -(elem: A) =
InsertionOrderSet[A](list.filter(_ != elem))
def diff(that: scala.collection.Set[A]): InsertionOrderSet[A] = InsertionOrderSet(elements.diff(that.toSeq))
}

Expand Down
2 changes: 1 addition & 1 deletion scalatest/src/main/scala/org/scalatest/Inspectors.scala
Expand Up @@ -23,7 +23,7 @@ import FailureMessages.decorateToStringValue
import enablers.Collecting
import scala.language.higherKinds
import enablers.InspectorAsserting
import org.scalactic._
import org.scalactic.{ exceptions => _, _ }

/**
* Provides nestable <em>inspector methods</em> (or just <em>inspectors</em>) that enable assertions to be made about collections.
Expand Down
2 changes: 1 addition & 1 deletion scalatest/src/main/scala/org/scalatest/LoneElement.scala
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ exceptions => _, FailureMessages => _, _ }
import enablers.Collecting
import exceptions.StackDepthException

Expand Down
2 changes: 1 addition & 1 deletion scalatest/src/main/scala/org/scalatest/Matchers.scala
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ exceptions => _, FailureMessages => _, UnquotedString => _, Resources => _, _ }
import org.scalatest.enablers._
import org.scalatest.matchers._
import org.scalatest.words._
Expand Down
Expand Up @@ -24,7 +24,7 @@ import scala.util.matching.Regex
import java.lang.reflect.Field
import org.scalatest.exceptions.TestFailedException
import org.scalatest.exceptions.StackDepthException
import org.scalactic._
import org.scalactic.{ exceptions => _, FailureMessages => _, UnquotedString => _, _ }

// TODO: drop generic support for be as an equality comparison, in favor of specific ones.
// TODO: mention on JUnit and TestNG docs that you can now mix in ShouldMatchers or MustMatchers
Expand Down
4 changes: 2 additions & 2 deletions scalatest/src/main/scala/org/scalatest/Outcome.scala
Expand Up @@ -15,9 +15,9 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ exceptions => _, _ }
import Requirements._
import org.scalatest.exceptions.StackDepthException
import exceptions.StackDepthException

/**
* Superclass for the possible outcomes of running a test.
Expand Down
2 changes: 1 addition & 1 deletion scalatest/src/main/scala/org/scalatest/Suite.scala
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ exceptions => _, Resources => _, _ }
import org.scalatest.events._
import Requirements._
import exceptions._
Expand Down
2 changes: 1 addition & 1 deletion scalatest/src/main/scala/org/scalatest/WordSpecLike.scala
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest

import org.scalactic._
import org.scalactic.{ UnquotedString => _, FailureMessages => _, _ }
import org.scalatest.exceptions._
import Suite.anExceptionThatShouldCauseAnAbort
import Suite.autoTagClassAnnotations
Expand Down
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest.fixture

import org.scalatest._
import org.scalatest.{ AsyncTestSuite => _, _ }
import org.scalatest.exceptions._
import org.scalactic.{source, Prettifier}
import scala.concurrent.Future
Expand Down
Expand Up @@ -15,7 +15,7 @@
*/
package org.scalatest.fixture

import org.scalatest._
import org.scalatest.{ AsyncTestSuite => _, _ }
import org.scalactic.source
import scala.concurrent.Future
import java.util.ConcurrentModificationException
Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.scalatest.fixture
package org.scalatest
package fixture

import org.scalatest._
import org.scalatest.exceptions._
import org.scalactic.{source, Prettifier}
import scala.concurrent.Future
Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.scalatest.fixture
package org.scalatest
package fixture

import org.scalatest._
import org.scalatest.exceptions._
import org.scalactic.{source, Prettifier}
import scala.concurrent.Future
Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.scalatest.fixture
package org.scalatest
package fixture

import org.scalatest._
import org.scalactic.source
import scala.concurrent.Future
import org.scalatest.Suite.autoTagClassAnnotations
Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.scalatest.fixture
package org.scalatest
package fixture

import org.scalatest._
import org.scalatest.exceptions._
import org.scalactic.{source, Prettifier}
import scala.concurrent.Future
Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.scalatest.fixture
package org.scalatest
package fixture

import org.scalatest._
import org.scalatest.exceptions._
import org.scalactic.{source, Prettifier}
import java.util.ConcurrentModificationException
Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.scalatest.fixture
package org.scalatest
package fixture

import org.scalatest._
import org.scalactic.source
import java.util.ConcurrentModificationException
import java.util.concurrent.atomic.AtomicReference
Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.scalatest.fixture
package org.scalatest
package fixture

import org.scalatest._
import org.scalatest.exceptions._
import org.scalactic.{source, Prettifier}
import java.util.ConcurrentModificationException
Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.scalatest.fixture
package org.scalatest
package fixture

import org.scalatest._
import org.scalatest.exceptions._
import org.scalactic.{source, Prettifier}
import java.util.ConcurrentModificationException
Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.scalatest.fixture
package org.scalatest
package fixture

import org.scalatest._
import org.scalactic.source
import org.scalatest.Suite.autoTagClassAnnotations

Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.scalatest.fixture
package org.scalatest
package fixture

import org.scalatest._
import org.scalactic.source
import org.scalatest.Suite.autoTagClassAnnotations

Expand Down
4 changes: 2 additions & 2 deletions scalatest/src/main/scala/org/scalatest/fixture/SpecLike.scala
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.scalatest.fixture
package org.scalatest
package fixture

import org.scalatest._
import org.scalatest.exceptions._
import Spec._
import Suite._
Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.scalatest.fixture
package org.scalatest
package fixture

import org.scalatest._
import org.scalatest.exceptions._
import org.scalactic.{source, Prettifier}
import java.util.ConcurrentModificationException
Expand Down

0 comments on commit 448a22c

Please sign in to comment.