Commit Graph

674 Commits

Author SHA1 Message Date
Stepan Koltsov d0cd37528a move some cli tests from CompilerSmokeTest to CliTest 2012-06-14 16:05:16 +04:00
Stepan Koltsov 40fe33045d cli test template 2012-06-14 15:29:17 +04:00
Stepan Koltsov 4e99edccaa TmpdirRule
junit4 @Rule to create tmp dir from idea SDK
2012-06-14 15:29:16 +04:00
Stepan Koltsov 9db8a63099 rename test cli.jvm.compiler to jvm.compiler
Tests has nothing to do with CLI

TODO: move codegen tests
2012-06-14 14:54:00 +04:00
Stepan Koltsov 13431c0f35 move TestCaseWithTmpdir* into test subpackage 2012-06-14 14:54:00 +04:00
Stepan Koltsov 1d0ef01eea REPL overload resolution ambiguity
Fix overload resolution ambiguity in REPL. Note, resolution for
functions declared in script is very different from regular programs:
in scripts function declared later wins. See
functionOverloadResolutionAnyBeatsString for example.

#KT-2272 Fixed
2012-06-14 14:06:17 +04:00
Stepan Koltsov 441e975323 fix order of parameters in assert in ReplInterpreterTest 2012-06-14 14:06:17 +04:00
Andrey Breslav a7aff72a4d Enum test case extracted: testMethod added 2012-06-14 13:01:33 +04:00
Stepan Koltsov 87871d0f91 repl: do not print null is last expression type is unit 2012-06-13 22:43:11 +04:00
Stepan Koltsov 55ffd797a4 test imports work in the following lines of REPL 2012-06-13 22:32:36 +04:00
Andrey Breslav 4d0aad1347 Injector creation pulled up 2012-06-13 20:34:14 +04:00
Andrey Breslav 290a2a0620 AbstractLazyResolveTest extracted 2012-06-13 20:34:13 +04:00
Andrey Breslav f4ac06a483 Test classes renamed to reflect what's happening in the tests 2012-06-13 16:31:41 +04:00
Andrey Breslav 8c73940808 Lazy resolve passes readJavaBinaryClass tests 2012-06-13 16:08:43 +04:00
Andrey Breslav af3aa6133e Customizable includeObjectMembers 2012-06-13 16:08:43 +04:00
Andrey Breslav 8b56d47af5 Generate test suites 2012-06-13 16:08:42 +04:00
Andrey Breslav 70a80e1436 Test generator facility factored out 2012-06-13 13:45:29 +04:00
Andrey Breslav 4d4444e863 Lazy resolve passes readKotlinBinaryClass tests 2012-06-13 13:25:34 +04:00
Stepan Koltsov 8dd1465371 pull script up in cli 2012-06-10 03:44:29 +04:00
Stepan Koltsov 35f1de468f refactor compiler launcher
* method should not modify input
* replace String with File
* add @NotNull and @Nullable annotations
2012-06-10 03:44:29 +04:00
Stepan Koltsov b0553ff651 properly handle empty lines in REPL 2012-06-09 23:25:41 +04:00
Stepan Koltsov f11767319a repl: fix two anonymous functions 2012-06-09 23:25:40 +04:00
Dmitry Jemerov ba76e1467c correct argument index for object that has outer this and closure arguments
#KT-1737 Fixed
2012-06-09 16:20:11 +02:00
Evgeny Gerashchenko d5b32ba70e KT-2206 ClassFormatError on loading class with property inherited from trait
#KT-2206 fixed
2012-06-09 17:13:38 +04:00
Evgeny Gerashchenko 208dd4e35d Revert commit because two commits fixing separate bugs were accidentally stuck together. Will recommit bugfixes separately.
Revert "KT-2193 Nullability information lost for functions inherited from traits".

This reverts commit d60818fd3e.
2012-06-09 17:13:38 +04:00
Dmitry Jemerov 0a05197454 remove attempt to optimize using 'if' statement as the last one in a loop which created far more problems that it fixed
#KT-1978 Fixed
2012-06-09 15:14:33 +02:00
Andrey Breslav f01b5ee55a Formatter 2012-06-09 16:52:54 +04:00
Andrey Breslav 0e0bf60e90 Clarifying comment 2012-06-09 16:52:53 +04:00
Evgeny Gerashchenko d60818fd3e KT-2193 Nullability information lost for functions inherited from traits
#KT-2193 fixed
2012-06-09 16:46:37 +04:00
Dmitry Jemerov c9125d3f59 correctly call properties on annotation classes
#KT-1932 Fixed
2012-06-09 14:48:04 +02:00
Andrey Breslav d6f279926c Lazy resolve: Support for imports and Java interop 2012-06-09 15:53:29 +04:00
Andrey Breslav 8358afbcd1 More diagnostic messages + output filter 2012-06-09 15:49:26 +04:00
Andrey Breslav c55bf8600e Fix rendering of error types 2012-06-09 13:41:49 +04:00
Stepan Koltsov acac0eddc7 formatting 2012-06-08 21:36:49 +04:00
Dmitry Jemerov 102f5c60be generating the body of the finally clause _four_ times is one time too many
#KT-1688 Fixed
2012-06-08 19:21:41 +02:00
Dmitry Jemerov 9eb2dd4bfe test for fixed KT-1721 2012-06-08 18:51:03 +02:00
Dmitry Jemerov 803a5e5b65 test for fixed KT-1891 2012-06-08 18:45:42 +02:00
Dmitry Jemerov 2e14454391 test for fixed KT-1439 2012-06-08 18:45:42 +02:00
Dmitry Jemerov f945ec6a27 return value of try/catch/finally changed according to frontend changes
#KT-910 Fixed
2012-06-08 18:45:41 +02:00
Dmitry Jemerov 8baae95531 if a shared variable is a result of the block, release it only after it has been put
#KT-2151 Fixed
2012-06-08 18:45:41 +02:00
Dmitry Jemerov 56310599a5 for completely empty if statement, put on stack the Tuple0 instance, not its condition (KT-2062)
#KT-2062 Fixed
2012-06-08 18:45:40 +02:00
Dmitry Jemerov 5c21564b05 test for already fixed KT-1611 2012-06-08 18:45:39 +02:00
Stepan Koltsov 8d0a008529 trying to fix ReplInterpreterTest on teamcity 2012-06-08 18:17:29 +04:00
Stepan Koltsov 59c9e328a7 temporarily disable tests that fail on teamcity 2012-06-08 05:13:29 +04:00
Stepan Koltsov 6946abbcea working on REPL: implemented previous lines importing 2012-06-08 04:19:24 +04:00
Stepan Koltsov c580a75f20 generate to text even if assertion error 2012-06-08 04:19:24 +04:00
Stepan Koltsov 18aa1dc570 script parameter closure 2012-06-08 04:19:24 +04:00
Stepan Koltsov 8a3d3d21bd better script class name 2012-06-08 04:19:23 +04:00
Andrey Breslav e3b8e977fb Added a check that all files in the file system are matched by the generated test 2012-06-07 20:42:50 +04:00
Svetlana Isakova 9e0e0e92df inlined 'getType' method without 'DataFlowInfo' parameter 2012-06-07 19:42:37 +04:00