Commit Graph

9381 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 3eac3cc38c Removed unnecessary methods. 2013-01-29 22:55:08 +04:00
Evgeny Gerashchenko a24bf67688 Dropped unnecessary primitive iterable traits. 2013-01-29 22:55:08 +04:00
Evgeny Gerashchenko 72b8c4b3c8 Refactored structure of ranges in JS backend. 2013-01-29 22:55:08 +04:00
Evgeny Gerashchenko 4a19cd758c Changed JS ranges test so it will fail now. 2013-01-29 22:55:08 +04:00
Evgeny Gerashchenko 88c304b85f Regenerated serialized builtins. 2013-01-29 22:55:08 +04:00
Evgeny Gerashchenko ac7477a6c1 Reformatted. 2013-01-29 22:55:07 +04:00
Evgeny Gerashchenko 6d41697af0 Added ComparableRange. 2013-01-29 22:55:07 +04:00
Evgeny Gerashchenko cec0389a8a Added equals, hashCode and toString to sequences. 2013-01-29 22:55:07 +04:00
Evgeny Gerashchenko a947633bec Inlined getter calls. 2013-01-29 22:55:07 +04:00
Evgeny Gerashchenko 0539be1b1c Rearranged methods in ranges. 2013-01-29 22:55:07 +04:00
Evgeny Gerashchenko 90e474ca75 Subclassed ranges from sequence. 2013-01-29 22:55:07 +04:00
Evgeny Gerashchenko 79d3440c92 Subclassed Float/DoubleRange from iterable (for uniformity). 2013-01-29 22:55:07 +04:00
Evgeny Gerashchenko 000fc55035 Added intrinsic properties of ranges and sequences. 2013-01-29 22:55:06 +04:00
Evgeny Gerashchenko b2e74b1473 Adapted code to new structure of ranges. 2013-01-29 22:55:06 +04:00
Evgeny Gerashchenko 9fa3e47b65 Added start and end property to generic range. 2013-01-29 22:55:05 +04:00
Evgeny Gerashchenko 0e0c048074 New structure of range classes. 2013-01-29 22:55:05 +04:00
Evgeny Gerashchenko 8c4abd4d9c Simpler toString() in ranges. 2013-01-29 22:55:05 +04:00
Evgeny Gerashchenko 0ff3589bb9 Moved *Range.step() functions to stdlib. 2013-01-29 22:55:05 +04:00
Evgeny Gerashchenko 9b866b2e12 Implemented reversed() in proper way.
- converted it into function
- return sequence values
- implemented for sequences as well
2013-01-29 22:55:05 +04:00
Evgeny Gerashchenko 0051cb9553 downTo functions return sequence instead of range now. 2013-01-29 22:55:04 +04:00
Evgeny Gerashchenko 4736b8d6e7 Introduced sequence classes. 2013-01-29 22:55:04 +04:00
Evgeny Gerashchenko abe7ca21bf Moved primitive iterators to upper level. 2013-01-29 22:55:04 +04:00
Evgeny Gerashchenko 88a6cffb34 Simplified primitive iterators. 2013-01-29 22:55:04 +04:00
Evgeny Gerashchenko c8a194c0a8 Dropped *Range.isReversed 2013-01-29 22:55:04 +04:00
Evgeny Gerashchenko 797b961484 Rearranged methods to follow common structure. 2013-01-29 22:55:03 +04:00
Evgeny Gerashchenko 9cd67dfc5c Removed unnecessary iteratorStart property of ranges. 2013-01-29 22:55:03 +04:00
Evgeny Gerashchenko eb8107115d Moved IntRange.count to Ranges class. 2013-01-29 22:55:03 +04:00
Evgeny Gerashchenko af0997a147 Removed static count() in all but IntRange. 2013-01-29 22:55:03 +04:00
Alexander Udalov 823fc14722 Regenerate tests 2013-01-29 22:46:37 +04:00
Alexander Udalov 9007a6214a Fix closure's reference to outer closure
#KT-3276 Fixed
2013-01-29 22:41:58 +04:00
Andrey Breslav be349f6229 Migrate to IDEA 123.139 (12.0.3) 2013-01-29 20:46:14 +04:00
Alexander Udalov bb5c65a7db Fix Android tests 2013-01-29 17:54:52 +04:00
Alexander Udalov 1eae609a35 Fix Android tests 2013-01-28 22:47:08 +04:00
Evgeny Gerashchenko f4c91915bb Fixed tests by running super.tearDown() 2013-01-28 20:20:37 +04:00
Evgeny Gerashchenko 3acf284a4a Reverted some copyrights. 2013-01-28 19:20:39 +04:00
Evgeny Gerashchenko 52b7ee6447 Happy new year 2013! 2013-01-28 18:58:08 +04:00
Evgeny Gerashchenko 65f1a8f430 Added test with number literals passed as constants. 2013-01-28 18:29:21 +04:00
Evgeny Gerashchenko 18b5495a8c KT-1895 Make it possible to pass 1.0 as Float without explicit casting
#KT-1895 fixed
2013-01-28 18:29:21 +04:00
Alexander Udalov 0b1fe9c611 Generate black box with java codegen tests 2013-01-28 18:20:44 +04:00
Alexander Udalov 2904d1745b Remove generated black box java codegen test
Move all testData to boxWithJava/
2013-01-28 18:20:41 +04:00
Alexander Udalov 86938f57b1 Remove codegen tests with Java, move testData to boxWithJava/
There'll be a single generated test class like
BlackBoxCodegenTestGenerated
2013-01-28 18:20:37 +04:00
Alexander Udalov 10c5949199 Extract some codegen tests to black box testData 2013-01-28 18:20:33 +04:00
Alexander Udalov f7e0b06c2f Generate black box codegen tests 2013-01-28 18:20:29 +04:00
Alexander Udalov 5313cf3bf0 Fix failing tests, copy testData
Some tests were using files that others called blackBoxFile() on. Since
those files are now moved to box/, copy them back to make the tests pass
2013-01-28 18:20:25 +04:00
Alexander Udalov 7ce62a5b64 Remove generated codegen tests, move all testData to box/
A single test file will be generated out of box/ directory
2013-01-28 18:20:21 +04:00
Alexander Udalov 41a416da60 Move blackBoxFile() testData to box/ directory
Delete all test methods (and empty test classes), since they'll be
auto-generated
2013-01-28 18:20:17 +04:00
Alexander Udalov ecbb2f10ef NamespaceGenTest doesn't require stdlib 2013-01-28 18:20:12 +04:00
Alexander Udalov 9bf73cf4b3 Extract static functions to CodegenTestUtil
Add Nullable/NotNull annotations
2013-01-28 18:18:08 +04:00
Alexander Udalov 63aacc416f Extract classPathInTheSameClassLoader into a separate test
- class loader is now always created as if classPathInTheSameClassLoader
  = false, which was the case of every codegen test except kt2781, which
  is extracted into a separate file
- testNoClassObjectForJavaClass() is moved from StdlibTest since it has
  a custom createClassLoader() which doesn't work well in a java-interop
  case
- get rid of generateClassesInFileGetState
- several similar methods are inlined
2013-01-28 18:16:40 +04:00
Alexander Udalov 639aa9e218 Codegen tests: don't generate twice when a test fails 2013-01-25 23:06:43 +04:00