From 3d08d377354373c92bc3337bf2d6b88c17120431 Mon Sep 17 00:00:00 2001 From: e5l Date: Wed, 20 Jul 2016 11:04:31 +0300 Subject: [PATCH] translator: fix tests answers --- .../src/test/kotlin/tests/input/class_init_section_1.txt | 2 +- translator/src/test/kotlin/tests/input/do_while_1.txt | 2 +- translator/src/test/kotlin/tests/input/object_1.txt | 2 +- translator/src/test/kotlin/tests/input/reassigment_1.txt | 2 +- translator/src/test/kotlin/tests/kotlin/object_1.kt | 4 ++++ 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/translator/src/test/kotlin/tests/input/class_init_section_1.txt b/translator/src/test/kotlin/tests/input/class_init_section_1.txt index 5d4017df746..6235445c164 100644 --- a/translator/src/test/kotlin/tests/input/class_init_section_1.txt +++ b/translator/src/test/kotlin/tests/input/class_init_section_1.txt @@ -1 +1 @@ -class_init_section(523) == 12868 +class_init_section_1(523) == 12868 diff --git a/translator/src/test/kotlin/tests/input/do_while_1.txt b/translator/src/test/kotlin/tests/input/do_while_1.txt index fbbf42402a4..ade0e14ec7c 100644 --- a/translator/src/test/kotlin/tests/input/do_while_1.txt +++ b/translator/src/test/kotlin/tests/input/do_while_1.txt @@ -1,2 +1,2 @@ do_while_test_1(5) == 6 -do_while_test_1(57) == 68 +do_while_test_1(57) == 58 diff --git a/translator/src/test/kotlin/tests/input/object_1.txt b/translator/src/test/kotlin/tests/input/object_1.txt index 33cda73f7b5..89000ee5c7d 100644 --- a/translator/src/test/kotlin/tests/input/object_1.txt +++ b/translator/src/test/kotlin/tests/input/object_1.txt @@ -1 +1 @@ -Singleton.create(5) == 40 +singletone_test(5) == 40 diff --git a/translator/src/test/kotlin/tests/input/reassigment_1.txt b/translator/src/test/kotlin/tests/input/reassigment_1.txt index ec3618dbf86..5717417372b 100644 --- a/translator/src/test/kotlin/tests/input/reassigment_1.txt +++ b/translator/src/test/kotlin/tests/input/reassigment_1.txt @@ -1 +1 @@ -reassigment_1(5) == 7 +reassigment_1(5) == 8 diff --git a/translator/src/test/kotlin/tests/kotlin/object_1.kt b/translator/src/test/kotlin/tests/kotlin/object_1.kt index 4825ae45a68..03635ee05ab 100644 --- a/translator/src/test/kotlin/tests/kotlin/object_1.kt +++ b/translator/src/test/kotlin/tests/kotlin/object_1.kt @@ -4,3 +4,7 @@ object Singleton { } } +fun signleton_test(i: Int): Int { + return Singleton.create(i) +} +