Pavel Punegov
0b7ad6e205
Remove obsolete C test files and Makefiles
2017-11-09 12:52:28 +03:00
Pavel Punegov
35505007d2
TestRunner support in test's build.gradle
...
* Fixes to tests
* RunKonanTest runs tests build with TestRunner
* Standalone tests
2017-10-20 18:25:05 +03:00
Pavel Punegov
9d077d7f4f
BC native tests port to Konan's TestRunner
2017-10-20 18:25:05 +03:00
Ilya Matveev
6ea341be06
tests: Move 'for' loop lowering tests into 'controlflow' directory
2017-07-18 17:05:58 +07:00
Ilya Matveev
745fc711f8
backend: Add caching for unary and binary operation symbols
2017-07-18 17:05:58 +07:00
Ilya Matveev
01f0540fac
backend: Don't cast step in 'for' loop lowering
2017-07-18 17:05:58 +07:00
Ilya Matveev
a97a310987
tests: Add tests for empty ranges in 'for' loops
2017-07-18 17:05:58 +07:00
Ilya Matveev
d474f207e3
backend: Don't create a Progression objects in 'for' loops
...
This patch optimizes the following pattern:
for (i in first..last step st) { ... }
In this case we need to create a Progression object and then call its
iterator() method causing at least 2 allocation per loop. This change
replaces such loops with the following constuction:
var inductionVar = first
checkProgressionStep(step) // check if step > 0
last = getProgressionLastElement(first, last, step)
if (first <= last) {
do {
i = inductionVar
inductionVar += step
...
} while(i != last)
}
2017-07-18 17:05:58 +07:00
Igor Chevdar
01cb9d4cac
Implementation of super methods calling ( #203 )
...
* implemented super call
* tests
* removed redundant code
2017-01-27 16:38:48 +05:00
Svyatoslav Scherbina
16ca882298
backend/tests: add cast_null and unchecked_cast3
2017-01-23 17:18:43 +07:00
Svyatoslav Scherbina
0958d32605
backend: improve typealias support:
...
* handle TypeAliasConstructorDescriptor in codegen
* ignore ignore typealias declaration in codegen
Also add test 'typealias1'.
2017-01-20 20:02:50 +07:00
Svyatoslav Scherbina
65444ec690
backend: improve type operators support:
...
* add initial support for casts with generics;
* optimize out the casts to subtypes
Also add tests unchecked_cast{1,2}, the latter is disabled.
2017-01-20 20:02:50 +07:00
Nikolay Igotti
90577d440a
Improve object arrays support. ( #182 )
...
Also fix the way how symbol names are being generated. Before arrays2.kt was not linking.
2017-01-16 12:22:27 +03:00
Svyatoslav Scherbina
8b83cb2adf
backend: enable some tests
2017-01-11 19:32:25 +07:00
Svyatoslav Scherbina
276e3bcd44
backend/tests:
...
* enable 'expression_as_statement'
* add unit{1..4}
2016-12-29 12:18:15 +07:00
Vasily Levchenko
3fe59cc46c
TEST: convertion unit tests into run tests
2016-12-27 13:56:03 +03:00
Svyatoslav Scherbina
62737efd54
backend: add tests:
...
* test for uninitialized vals
* test initializers3: global `var` of reference type
* expression_as_statement (disabled): using type operator as statement
Also enable test break1.
2016-12-23 11:40:31 +07:00
Konstantin Anisimov
282f4fee07
TEST: yet another string concatenation test
2016-12-08 13:37:22 +03:00
Konstantin Anisimov
d8fe22cfb8
TEST: spread element test
2016-12-08 11:59:46 +03:00
Konstantin Anisimov
3eec3da511
TEST: tests for instanceof are modified to take in account null and nullable
2016-12-06 16:41:27 +03:00
Svyatoslav Scherbina
e65b22569c
backend/tests: add disabled test 'array_to_any'
2016-12-02 16:47:40 +07:00
KonstantinAnisimov
90b6a12a5c
Canonical name ( #99 )
...
* TEST: enabled testRetainAll
* Method resolution spared of annotations and generics
* TEST: test for canonical names "interface+generic" added
* Methods' canonical names support:
- Recursive iteration of method argument types
- Arguments in question are delivered from topmost overriden ancestor of this method
2016-11-30 16:19:28 +03:00
Konstantin Anisimov
837ae60eaf
TEST: tests for safe cast added
2016-11-28 21:48:01 +03:00
Konstantin Anisimov
4717e99ac2
TEST: companion and init0 tests
...
(cherry picked from commit f8e80249e9f986ae58a52a57173d2cb0b68a653b)
2016-11-25 23:37:49 +03:00
Konstantin Anisimov
df358e8bd4
TEST: Tests for "null" constant added
2016-11-21 21:08:36 +03:00
Konstantin Anisimov
c1bb762417
TESTS: "for" and INSTANCEOF, NOT_INSTANCEOF, isInstanceOf on interface are added
2016-11-18 16:22:27 +03:00
Konstantin Anisimov
9c28555e55
Test for cast added
2016-11-18 15:47:28 +03:00
Svyatoslav Scherbina
f389ebf687
backend/tests: update resolved symbol names
...
according to new mangling scheme
2016-11-14 13:33:47 +07:00
Konstantin Anisimov
4078e4004c
tests for local variables
2016-11-03 16:19:03 +03:00