Skip to content

Commit

Permalink
TESTS: some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
egorklementev committed Feb 27, 2022
1 parent b0e2395 commit 8062074
Show file tree
Hide file tree
Showing 12 changed files with 59 additions and 31 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<br>

[![Gradle Build](https://github.com/polystat/j2eo/actions/workflows/gradle-build.yml/badge.svg)](https://github.com/polystat/j2eo/actions/workflows/gradle-build.yml)
![LINE](https://img.shields.io/badge/line--coverage-31,08%25-red.svg)
![BRANCH](https://img.shields.io/badge/branch--coverage-20,13%25-red.svg)
![COMPLEXITY](https://img.shields.io/badge/complexity-7,38-brightgreen.svg)
![LINE](https://img.shields.io/badge/line--coverage-36,33%25-red.svg)
![BRANCH](https://img.shields.io/badge/branch--coverage-25,45%25-red.svg)
![COMPLEXITY](https://img.shields.io/badge/complexity-6,48-brightgreen.svg)

This is a translator of **Java** programming language to [EOLANG](https://www.eolang.org) programming language.

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/eotree/EODot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class EODot : EOExpr {
}

constructor(name: CompoundName) {
println("Mapping ${name.concatenatedJava()}")
// println("Mapping ${name.concatenatedJava()}")
// Recursively build a dot expression
this.src =
if (name.names.size >= 2)
Expand Down

This file was deleted.

This file was deleted.

3 changes: 3 additions & 0 deletions src/test/resources/test_ready/SimpleTest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
public class SimpleTest {

public static void main(String[] args) {
int a = 5;
int b = (-a);
System.out.println(b);
System.out.println("passed");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
public class SimpleTest {

public static void main(String[] args) {
int a = 5;
int b = (++a);
System.out.println(b);
System.out.println("passed");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
public class SimpleTest {

public static void main(String[] args) {
int a = 5;
int b = (--a);
System.out.println(b);
System.out.println("passed");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
public class MultiplicationAndAssign {

public static void main(String[] args) {
int a = 5;
a *= 5;
System.out.println(a);
System.out.println("passed");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
public class DivisionAndAssign {

public static void main(String[] args) {
int a = 25;
a /= 2;
System.out.println(a);
System.out.println("passed");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
public class ComplexParenthExpression {

public static void main(String[] args) {
int a = (10 + ((((5 * (2 + (2)))))));
System.out.println(a);
System.out.println("passed");
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
public class SimpleParenthExression {

public static void main(String[] args) {
int a = (10 + 2);
System.out.println(a);
System.out.println("passed");
}
}

0 comments on commit 8062074

Please sign in to comment.