Commit Graph

6654 Commits

Author SHA1 Message Date
James Strachan a3d30409d3 added more descriptive assertion failure 2012-07-16 13:47:44 +01:00
James Strachan fee8c42885 added better links 2012-07-16 09:47:31 +01:00
James Strachan f54c3b9ab8 added an experimental refactor of the standard library where we use traits and inheritence/override to group extension functions and apply them in a more powerful way; reusing the language & IDE to check for missing functions or incorrect overriding etc. (e.g. its easy to see the difference between eager & lazy and ensure consistent APIs across extension functions) 2012-07-16 09:43:45 +01:00
Evgeny Gerashchenko a1ef535ace Reverted "Fixed Ranges.upTo and downTo, so they return non-empty range for case from==to". This patch needs to be reviewed later. 2012-07-15 11:23:04 +04:00
Evgeny Gerashchenko d3ba6a7bb9 Fixed Ranges.upTo and downTo, so they return non-empty range for case from==to. 2012-07-14 12:46:51 +04:00
Evgeny Gerashchenko 07347e20a9 Reformatted Ranges. 2012-07-14 12:41:49 +04:00
Andrey Breslav 15d469156a Reverting command line reporting: it breaks tests 2012-07-14 12:15:30 +04:00
Andrey Breslav 95b93322b3 Report the command line that was passed if its format is wrong 2012-07-14 11:56:29 +04:00
Dmitry Jemerov e5be4c8e63 publish plugin dist before test run is completed 2012-07-13 16:49:36 +02:00
Dmitry Jemerov 1ac60dae5e don't use PSI for calculating the type of first argument of trait function implementation 2012-07-13 16:12:33 +02:00
Andrey Breslav e182041eb9 Escaping optimized
TODO: we have to integrate this optimization in IDEA
2012-07-13 12:52:55 +04:00
Andrey Breslav 17169b1244 NamespaceComparator moved to test.util 2012-07-13 12:31:22 +04:00
Andrey Breslav b167e0dd49 Method cache to speed up dispatch 2012-07-13 12:31:22 +04:00
Andrey Breslav 969a798998 Pre-compile pattern for performance 2012-07-13 12:31:22 +04:00
Andrey Breslav de7b93c4b8 Class object resolution scope should not have an implicit receiver
See testData/diagnostics/test/ClassObjectCannotAccessClassFields.kt test
2012-07-13 12:31:21 +04:00
Andrey Breslav 44d92d8eb3 Support for checking loaded descriptors agains an expected txt file 2012-07-13 12:31:21 +04:00
Andrey Breslav 7cf9eeee65 Class object handling refactored to emphasize the structure 2012-07-13 12:31:21 +04:00
Andrey Breslav 55ff4ae941 Abstract Lazy test for gianostics 2012-07-13 12:31:21 +04:00
Dmitry Jemerov a65453a1bd remove unnecessary PsiElement check (which doesn't work correctly in case of a multi-module project and separate compilation), use ClassDescriptor instead 2012-07-12 21:02:59 +02:00
Dmitry Jemerov bd01b82746 don't generate redundant checkcast 2012-07-12 20:26:44 +02:00
Dmitry Jemerov 5ab1608ced pull generateTraitMethods() out of generatePrimaryConstructor(), don't inappropriately reuse ExpressionCodegen 2012-07-12 20:10:26 +02:00
Dmitry Jemerov 40e4e32eab object declarations need trait methods to be generated too (KT-2399) 2012-07-12 17:45:41 +02:00
Natalia.Ukhorskaya f271d7363e Android module: update files compiled with mock jdk 2012-07-11 20:27:32 +04:00
Leonid Shalupov 9493dfdbe9 fix build 2012-07-11 19:30:35 +04:00
Leonid Shalupov 8d3981e74c TeamCityPluginPublisher.xml: generate updatePlugins.xml in TC build itself 2012-07-11 19:29:08 +04:00
Leonid Shalupov 41cbdd754c fix build 2012-07-11 19:27:09 +04:00
Leonid Shalupov 6e1dffb29c some fixes in update_dependencies.xml 2012-07-11 19:08:26 +04:00
Dmitry Jemerov de3f5d0e2d avoid coercing 'this' to a supertype; cleaner handling of stackvalues for 'this' and 'super' (KT-2395) 2012-07-11 16:59:01 +02:00
Andrey Breslav 739a1f8245 Diagnostics tests prepared for the Lazy version 2012-07-11 17:10:30 +04:00
Andrey Breslav 09802271a8 Debug string fixed 2012-07-11 16:57:33 +04:00
Andrey Breslav 7ec49eafb9 Using standard utilities for files loading 2012-07-11 16:47:54 +04:00
Andrey Breslav dbca884b85 Cleanup 2012-07-11 16:47:54 +04:00
Andrey Breslav be6464d068 Merge pull request #98 from udalov/kt2376-fixup
fix java.lang.Number type mapping to jet.Number (KT-2376)
2012-07-11 05:47:27 -07:00
Evgeny Gerashchenko 1de2e80c32 Increased tolerated time difference for codegen tests relying on current time. 2012-07-11 16:43:08 +04:00
Alexander Udalov 2d6b8abbe1 fix java.lang.Number type mapping to jet.Number (KT-2376) 2012-07-11 16:37:48 +04:00
Andrey Breslav 2315412c45 One test suite per source file
This removes annoying yellow nodes from IDEA test tree
2012-07-11 16:26:10 +04:00
Evgeny Gerashchenko 9d9eba2a49 Regenerated InjectorForJvmCodegen (it contained unused imports). 2012-07-11 15:55:54 +04:00
Evgeny Gerashchenko ea85748bf0 Made AbstractLazyResolveDiagnosticsTest actually abstract. 2012-07-11 15:45:51 +04:00
Evgeny Gerashchenko 3bf8321e3c Fixed evil bug in processing command-line args: classpath was added as annotations path. 2012-07-11 15:44:43 +04:00
Natalia.Ukhorskaya 0ef0f023b7 Android module: update excluded files 2012-07-11 15:18:06 +04:00
Alex Tkachman a7ca3fcf52 Merge pull request #97 from udalov/kt2376
KT-2376 java.lang.Number should be visible in Kotlin as jet.Number
2012-07-11 04:04:52 -07:00
Alexander Udalov 5cc043314d KT-2376 java.lang.Number should be visible in Kotlin as jet.Number
#KT-2376 Fixed
2012-07-11 14:31:10 +04:00
Alex Tkachman 8012725d38 KT-2060 fix 2012-07-11 13:10:54 +03:00
Andrey Breslav 207c75b956 Environment creation unified everywhere.
JDK Kind turned into enum for clarity
2012-07-11 13:40:50 +04:00
Andrey Breslav fe6fa5dfaa JetLiteFixture migrated to use KotlinTestWithEnvironment 2012-07-11 13:21:39 +04:00
Andrey Breslav 8d6fd3a18b Base classes for tests put into order:
* KotlinTestWithEnvironmentManagement — methods for creating envirnoments tied up to test root disposable (automatically disposed on teadDown())
* KotlinTestWithEnvironment — a test with one environment (created by an abstract method)

Also, utilities for laz yresolve tests moved to LazyResolveTestUtil
2012-07-11 12:51:58 +04:00
Andrey Breslav 4f5aa9d0fe Generators sit in the abstract test classes 2012-07-11 11:37:38 +04:00
Dmitry Jemerov 1fe9c291f1 ugly and incomplete solution for using correct bytecode instruction when accessing properties inherited from traits (KT-2391) 2012-07-10 21:21:16 +02:00
Andrey Breslav e4f45fc514 Make test independent of the particular stdlib code
In the previous version test would fail every time stdlib changes
2012-07-10 22:59:58 +04:00
Andrey Breslav d0e40abc09 Lazy resolve: Full standard library is properly loaded 2012-07-10 22:49:18 +04:00