aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Add dotty-library to classpath in dottydoc testsFelix Mulder2016-11-225-21/+55
|
* Create dotty-lib.jar for run testsFelix Mulder2016-11-226-54/+211
|
* Remove compiler when running applications via dotrFelix Mulder2016-11-221-1/+5
|
* Merge pull request #1725 from dotty-staging/change-pickle-earlyGuillaume Martres2016-11-221-4/+3
|\ | | | | Don't retain picklers until backend.
| * Revert 53cd512Martin Odersky2016-11-191-4/+3
| | | | | | | | | | | | Re-enable context-leak detection by reverting 53cd512. But leak detection seems to be leaky itself :-)
* | Merge pull request #1634 from dotty-staging/change-tasty-pos-ctdodersky2016-11-211-1/+1
|\ \ | |/ |/| Towards correct positions in TASTY types
| * Clean up parameterized typedefsMartin Odersky2016-11-111-1/+1
| | | | | | | | | | | | | | | | Express them in terms PolyTypeTrees rather than having an irregular, untyped only tparams field. This is necessary if we want to pickle type trees instead of types, because now the rhs of a typedef tells the whole story, so we are not required any longer to use the info of the symbol.
* | Make sure all `Message` creation is by nameFelix Mulder2016-11-141-2/+2
| |
* | Make sure messages are lazily evaluated until `report` in `Reporter`Felix Mulder2016-11-101-0/+37
|/
* Change `ClassicReporter` to `TestReporter` in test sourcesFelix Mulder2016-11-092-4/+56
|
* add the forgotten patmat testliu fengyun2016-11-091-0/+90
|
* Merge pull request #1587 from dotty-staging/change-tasty-posGuillaume Martres2016-11-041-1/+1
|\ | | | | Fix Tasty positions
| * Pickle Inlined treesMartin Odersky2016-10-171-2/+2
| | | | | | | | | | | | | | | | Inlined trees should be preserved by pickling so that we keep positions accurate. With that change now all tasty tests are tested for position accuracy.
| * Drop erroneous setPos in TreeUnpickler.Martin Odersky2016-10-171-1/+1
| | | | | | | | | | With that change, all files tested in pickleOK have the same positions before and after pickling.
* | address review feedbackliu fengyun2016-10-221-3/+5
| |
* | add tests for modifiersliu fengyun2016-10-221-0/+160
|/
* Merge pull request #1565 from Blaisorblade/warningsFelix Mulder2016-10-141-3/+3
|\ | | | | Small fixes to some warnings/comment typos
| * Fix compilation warningsPaolo G. Giarrusso2016-10-071-3/+3
| |
* | fix #1274: test for dotty bootstrap based on tastyliu fengyun2016-10-131-11/+35
| |
* | Refactor explanation interpolatorFelix Mulder2016-10-101-3/+1
| |
* | Remove duplication of console reportersFelix Mulder2016-10-101-1/+3
| |
* | Make relevant parts of compiler conform to new error handlingFelix Mulder2016-10-102-4/+4
| |
* | Add modifiers to highlightingFelix Mulder2016-10-103-7/+10
|/
* Add `Comments` object instead of `Scanners.Comment` case classFelix Mulder2016-10-061-45/+45
|
* Merge pull request #1492 from dotty-staging/add-inlineGuillaume Martres2016-10-063-3/+35
|\ | | | | Implement inline
| * Add InlineBytecodeTests to check that inline really worksGuillaume Martres2016-10-051-0/+32
| |
| * DottyBytecodeTest: fix diffInstructions outputGuillaume Martres2016-10-051-1/+1
| |
| * Make inline annotation @scala.inline.Martin Odersky2016-10-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop @dotty.annotation.inline. This will inline all @inline marked methods in Scala for which a body is known (i.e. that are either compiled in the same run or have Tasty trees available). Option -Yno-inline suppresses inlining. This is needed for the moment because some @inline methods access private members or members that are otherwise inaccessible at the call-site. Also fixes some problems in Inliner - make sure type arguments to inline calls re fully defined - don't forget recursive calls in typeMap - don't forget positions in treeMap - drop dead code dealing with outer.
* | Merge pull request #1494 from martijnhoekstra/wintestsFelix Mulder2016-10-068-18/+52
|\ \ | |/ |/| [WIP] fix encoding issues
| * test negtest path with / rather than path separatorMartijn Hoekstra2016-09-081-1/+1
| |
| * honor -encoding compiler flag and defaultsMartijn Hoekstra2016-09-075-9/+18
| | | | | | | | | | | | | | | | | | rename test/pos/valueclasses to pos_valueclasses tests/pos/valueclasses generates a valueclasses.flags file in /tests/partest-generated/pos that conflicts with the valueClasses.flags file that tests/neg/valueClasses.scala tries to create
| * force UTF-8 for slurp and writeMartijn Hoekstra2016-09-071-2/+28
| |
| * ignore REPL transscript line ending differencesMartijn Hoekstra2016-09-071-2/+2
| |
| * normalize paths for testsMartijn Hoekstra2016-09-073-5/+4
| |
* | Make InterpolatedString conform to ordering requirementMartin Odersky2016-09-241-2/+2
|/ | | | Arrange its sub-elements so that they appear strictly left to right.
* Merge pull request #1461 from dotty-staging/fixes-gadtsodersky2016-08-261-0/+1
|\ | | | | Fixes of GADTs and test recategorization.
| * Recategorize testsMartin Odersky2016-08-261-0/+1
| | | | | | | | | | | | | | | | | | Passing tests from pending/pos go in pos. Some others go in diabled/not-testable. These are tests that require a compilation order which we cannot yet do with our unit testing framework. Compiling them alltogether (as is now doen in junit) does not work either for them because they contain a duplicate class.
* | Fix a couple of warnings.Nicolas Stucki2016-08-261-1/+0
|/
* Merge pull request #1453 from felixmulder/topic/dottydocodersky2016-08-241-45/+45
|\ | | | | Add dottydoc
| * Add module member lookupFelix Mulder2016-08-191-45/+45
| |
* | Add passing testMartin Odersky2016-08-181-0/+7
|/ | | | Needs to be done in pos-special because junit tests do not recognize _1, _2.
* Fix readLine in TestREPL to align with Ammonite readerMartin Odersky2016-08-161-3/+11
| | | | | | Needs to read several input lines at once. Enables repl test of new error messages.
* Merge pull request #1289 from dotty-staging/fix/partest-separateGuillaume Martres2016-07-272-27/+58
|\ | | | | partest: Enable separate compilation
| * partest: put more stuff on javac classpathGuillaume Martres2016-07-271-0/+56
| | | | | | | | | | | | | | | | Some java tests require the scala-library to be present on the classpath, this fixes tests/pos/java-interop/{t1186, t1235, t1254, t1642}. Also correctly redirect the output of javac so that it will be displayed by partest --verbose
| * partest: Enable separate compilation and javac testsGuillaume Martres2016-07-272-27/+2
| | | | | | | | | | | | | | | | | | | | | | | | partest can separately compile files based on their suffix (_1, _2, ...), it turns out that this feature was never enabled in the dotty version of partest and no one noticed (it prints warnings in ./tests/partest-generated/gen.log which no one reads), tests with *.java files should be compiled both with javac and dotty, but compiling with javac was also disabled. Enabling this revealed some latent bugs that will be fixed in the next few commits.
* | Fixes #1316: Remove JLineKazuyoshi Kato2016-07-271-5/+0
|/ | | | | Dotty uses ammonite.terminal since April (53bd25f) which replaces JLine. There is no reason to keep it anymore.
* Fix #1401: Make sure all refs are forwardedMartin Odersky2016-07-211-1/+1
| | | | | | | | | | | | Faced with recursive dependencies through self types, we might have to apply `normalizeToClassRefs` to a class P with a parent that is not yet initialized (witnessed by P's parents being Nil). In that case we should still execute forwardRefs on P, but we have to wait in a suspension until P is initialized. This avoids the problem raised in #1401. I am still not quite sure why forwardRefs is needed, but it seems that asSeenFrom alone is not enough to track the dependencies in this case.
* Disable stdlib testMartin Odersky2016-07-181-1/+1
| | | | | | | | | | | | | | | Interestingly, adding mutable.BufferLike to the whitelist succeeds under junit but fails under partest. Unfortunately I can't see any output in the log indicating what went wrong. I only see this: !! 306 - pos/compileStdLib [compilation failed] # Failed test paths (this command will update checkfiles) test/partest --update-check \ /Users/odersky/workspace/dotty/tests/partest-generated/pos/compileStdLib
* Add test to whitelistMartin Odersky2016-07-171-0/+1
| | | | This should have been done in a PR that was merged before.
* Fix error printing in compiler testMartin Odersky2016-07-161-9/+7
| | | | Error messages were suppressed so far, now get printed.