aboutsummaryrefslogtreecommitdiff
path: root/test/test
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add commandline argument `-Ykeep-comments` to remove hardcodingFelix Mulder2016-04-071-0/+2
|
* Add binding between Symbol and Untyped tree in base contextFelix Mulder2016-04-072-37/+72
| | | | This commit also adds a printer for use by dottydoc.
* Change tests to be based on JUnit, rename comments variableFelix Mulder2016-04-072-506/+454
|
* Add docstring support for types, vals, vars and defsFelix Mulder2016-04-071-4/+137
|
* Fix association of docstrings based on posisitionFelix Mulder2016-04-071-1/+50
| | | | | | | | | | | | | | | | | | | This commit fixes errors that would've occurred in this situation: ``` /** Docstring 1 */ <- this one would've been chosen /** Docstring 2 */ /** Docstring 3 */ class Class ``` And this situation: ``` /** Docstring 1 */ trait Trait /** Docstring 2 */ <- this one would've been chosen ```
* Add package object supportFelix Mulder2016-04-071-2/+93
|
* Add ability to parse nested classes/traits docstringsFelix Mulder2016-04-071-1/+47
|
* Fix traits w/o bodies not getting the correct docstringFelix Mulder2016-04-071-4/+32
|
* Add tests for classes and traitsFelix Mulder2016-04-072-2/+160
|
* Move Mode to coreMartin Odersky2016-04-012-2/+2
| | | | | Mode is used from a lot of low-level code, does not just reflect Typer info. So it makes more sense top to place it in the core package.
* Add docs to TestREPLMartin Odersky2016-03-181-0/+8
|
* Move all overridable bits into Config classMartin Odersky2016-03-181-15/+14
| | | | | | Central config class replaces mixture of parameters and fields. The fields were in part in the wrong class, where they could not easily be overridden.
* Add REPL testsMartin Odersky2016-03-182-1/+56
|
* Merge pull request #1166 from dotty-staging/fix-#1136odersky2016-03-181-2/+2
|\ | | | | Fix typing of SeqLiterals
| * Add second field to SeqLiteralMartin Odersky2016-03-101-2/+2
| | | | | | | | | | | | | | The field keeps track of the element type. This is necessary because JavaSeqLiteral is nonvariant and the elements might be empty, so we cannot always compute the type from the element types.
* | Polish rewrite testMartin Odersky2016-03-121-3/+3
| | | | | | | | Remove println; add docs
* | Rewrite testMartin Odersky2016-03-121-1/+17
|/ | | | Test rewritings that were implemented so far.
* Merge pull request #1126 from sjrd/scalajsDmitry Petrashko2016-03-041-1/+1
|\ | | | | Initial infrastructure and hello world for the Scala.js back-end.
| * Store the JSDefinitions in a custom platform SJSPlatform.Sébastien Doeraene2016-03-011-1/+1
| | | | | | | | | | | | This required the ability to instantiate a different `Platform` depending on settings, which, in turn, required to defer the initialization of `ContextBase.platform`.
* | Neg tests: change val computeFilePathsAndExpErrors to defVladimirNik2016-03-031-3/+3
| |
* | Neg tests: remove negTest flag; neg tests are binded to neg directoryVladimirNik2016-03-031-41/+34
| |
* | Neg tests: remove xerror parameter from tests (compute based on // error)VladimirNik2016-03-031-42/+67
|/
* Add a `dotty-interfaces` packageGuillaume Martres2016-02-282-0/+127
| | | | | | | | | | | | | | | | | | | | | | We introduce a new entry point for the compiler in `dotty.tools.dotc.Driver`: ``` def process(args: Array[String], simple: interfaces.SimpleReporter, callback: interfaces.CompilerCallback): interfaces.ReporterResult ``` Except for `args` which is just an array, the argument types and return type of this method are Java interfaces defined in a new package called `dotty-interfaces` which has a stable ABI. This means that you can programmatically run a compiler with a custom reporter and callbacks without having to recompile it against every version of dotty: you only need to have `dotty-interfaces` present at compile-time and call the `process` method using Java reflection. See `test/test/InterfaceEntryPointTest.scala` for a concrete example. This design is based on discussions with the IntelliJ IDEA Scala plugin team. Thanks to Nikolay Tropin for the discussions and his PR proposal (see #1011).
* Neg tests: filename checking updatedVladimirNik2016-02-181-1/+1
|
* Restructured JUnit neg testsvsalvis2016-02-181-50/+107
|