Skip to content

Commit

Permalink
TESTS: test addition
Browse files Browse the repository at this point in the history
  • Loading branch information
egorklementev committed Feb 27, 2022
1 parent 9b70f20 commit 9af5b3e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 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-30,97%25-red.svg)
![BRANCH](https://img.shields.io/badge/branch--coverage-21,13%25-red.svg)
![COMPLEXITY](https://img.shields.io/badge/complexity-6,69-brightgreen.svg)
![LINE](https://img.shields.io/badge/line--coverage-33,43%25-red.svg)
![BRANCH](https://img.shields.io/badge/branch--coverage-23,75%25-red.svg)
![COMPLEXITY](https://img.shields.io/badge/complexity-6,23-brightgreen.svg)

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

Expand Down
4 changes: 3 additions & 1 deletion src/main/java/translator/preprocessor/Preprocessor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ data class PreprocessorState(
val classNames: HashMap<String, String> = hashMapOf(
"Object" to TokenCodes.CLASS__OBJECT.value,
"System" to TokenCodes.CLASS__SYSTEM.value,
"int" to TokenCodes.PRIM__INT.value
"int" to TokenCodes.PRIM__INT.value,
"float" to TokenCodes.PRIM__FLOAT.value,
"boolean" to TokenCodes.PRIM__BOOLEAN.value
),
val stdClassesNeededForAlias: HashSet<String> = hashSetOf(
TokenCodes.CLASS__OBJECT.value,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
public class CharLiteral {

public static void main(String[] args) {
char c = 'f';
System.out.println("passed");
}
}
3 changes: 1 addition & 2 deletions src/test/resources/test_ready/SimpleTest.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
public class SimpleTest {

public static void main(String[] args) {
boolean a = true;
boolean b = false;
String s = "some";
System.out.println("passed");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
public class BooleanLiteral {

public static void main(String[] args) {
boolean a = true;
boolean b = false;
System.out.println("passed");
}
}

0 comments on commit 9af5b3e

Please sign in to comment.