Skip to content

Conversation

@adriaanm
Copy link
Contributor

Using the ToolBox compiler. Minor cheat required:
must add header import scala.xml.{TopScope => $scope},
which is normally added (synthetically) by the compiler.
Somehow, the toolbox compiler doesn't see this change to rootContext.
/cc @xeno-by, any idea why?

This adds a dependency on scala-compiler (for the toolbox compiler),
and on JUnit, but removes the dependency on partest.

CompilerErrors defines a class CompilerTesting that we might factor out.
It's based on https://github.com/scala/async/blob/master/src/test/scala/scala/async/package.scala#L34

review by @retronym

Using the ToolBox compiler. Minor cheat required:
must add header `import scala.xml.{TopScope => $scope}`,
which is normally added (synthetically) by the compiler.
Somehow, the toolbox compiler doesn't see this change to `rootContext`.

This adds a dependency on scala-compiler (for the toolbox compiler),
and on JUnit, but removes the dependency on partest.

CompilerErrors defines a class CompilerTesting that we might factor out.
It's based on https://github.com/scala/async/blob/master/src/test/scala/scala/async/package.scala#L34
@retronym
Copy link
Member

lgtm

retronym added a commit that referenced this pull request Nov 19, 2013
Replace partest neg tests with JUnit tests.
@retronym retronym merged commit 08814e2 into scala:master Nov 19, 2013
@adriaanm adriaanm deleted the neg-to-junit branch November 19, 2013 08:19
@xeno-by
Copy link
Contributor

xeno-by commented Nov 19, 2013

@adriaanm Good question. Looks like a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants