aboutsummaryrefslogtreecommitdiff
path: root/test/test
Commit message (Collapse)AuthorAgeFilesLines
* Add dotty-library to classpath in dottydoc testsFelix Mulder2016-11-224-12/+41
|
* Create dotty-lib.jar for run testsFelix Mulder2016-11-223-10/+56
|
* 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 :-)
* | 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.
* Change `ClassicReporter` to `TestReporter` in test sourcesFelix Mulder2016-11-091-4/+4
|
* add the forgotten patmat testliu fengyun2016-11-091-0/+90
|
* 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
| |
* | 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-102-6/+8
|/
* 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-062-1/+33
|\ | | | | Implement inline
| * Add InlineBytecodeTests to check that inline really worksGuillaume Martres2016-10-051-0/+32
| |
| * DottyBytecodeTest: fix diffInstructions outputGuillaume Martres2016-10-051-1/+1
| |
* | Merge pull request #1494 from martijnhoekstra/wintestsFelix Mulder2016-10-067-15/+45
|\ \ | |/ |/| [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-074-6/+11
| | | | | | | | | | | | | | | | | | 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.
* Add module member lookupFelix Mulder2016-08-191-45/+45
|
* 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-271-1/+2
|\ | | | | partest: Enable separate compilation
| * partest: Enable separate compilation and javac testsGuillaume Martres2016-07-271-1/+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 error printing in compiler testMartin Odersky2016-07-161-9/+7
| | | | Error messages were suppressed so far, now get printed.
* Fix #1336: Discard reporter output for tests that succeed.Nicolas Stucki2016-07-071-5/+20
|
* partest: correct line numbers in run stack tracesGuillaume Martres2016-06-301-6/+2
| | | | | | | partest adds a warning in a comment at the beginning of source files that it copies, but this means that every line number displayed in a stack trace is offset by 6. We can workaround this by making the warning a single line with no newline at the end.
* Merge pull request #1251 from felixmulder/topic/fix-stdoutredirect-replFelix Mulder2016-06-011-0/+3
|\ | | | | Fix stdout redirect for REPL's println
| * Use ChoiceSetting for coloringFelix Mulder2016-05-121-1/+1
| |
| * Add CLI option to disable REPL syntax highlightingFelix Mulder2016-05-121-2/+4
| |
| * Strip colors from output in TestREPLFelix Mulder2016-05-121-1/+2
| |
* | Merge pull request #1256 from felixmulder/topic/test-bcodeDmitry Petrashko2016-05-274-0/+713
|\ \ | | | | | | Add bytecode checking infrastructure
| * | Add tests for primitive construction as well as reference and boxed unit arraysFelix Mulder2016-05-183-3/+100
| | |
| * | Add test for `Array.ofDim`Felix Mulder2016-05-171-0/+24
| | |
| * | Fix #1258: correct behavior for annotated valuesFelix Mulder2016-05-172-19/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | Annotated values are encapsulated in a `ConcreteAnnotation`, as such, the statement `tpe isRef defn.IntClass` would yield false despite the annotated reference being an Int. The tpe is now unwrapped if it has an annotation. If the transformation fails despite having the annotation the compiler will warn.
| * | Add switch verification testFelix Mulder2016-05-172-2/+62
| | |
| * | Add bytecode checking infrastructureFelix Mulder2016-05-174-0/+516
| |/
* / Add Eq instances of standard types to PredefMartin Odersky2016-05-231-1/+5
|/ | | | | | | | | To make tests pass, this required a looser specification of `assumedCanEquals`, so that an abstract type T can be compared to arbitrary values, as long as its upper bound can be compared. E.g. T == null T == "abc"
* Rename old DottyRepl (used for power mode) using ILoop to TypeStealerFelix Mulder2016-04-291-1/+1
|
* Revert Scanners and Tokens to their original formFelix Mulder2016-04-281-1/+1
| | | | | Since we decided to go with the non dotty-scanner approach these are unnecessary to have altered, might just as well revert them.
* Add multiline support using ammonite multilineFilterFelix Mulder2016-04-281-1/+1
|
* Initial implementation featuring two different highlightersFelix Mulder2016-04-281-2/+2
| | | | | | | | | | | One was implemted by hand and the other by using dotty's parser. The one built by hand is shorter, and behaves correctly. The scanner one is unfortunately not ready for testing - there are too many things that are workarounds for it to be a good solution as of now The code added from Ammonite is licensed under MIT, not sure where to put the license - but will add it once I know.
* Fix issues with `enterBlock` for comment parsingFelix Mulder2016-04-111-0/+30
|