diff --git a/tests/csharpTranspiler.test.ts b/tests/csharpTranspiler.test.ts index 2e0b819..4857312 100644 --- a/tests/csharpTranspiler.test.ts +++ b/tests/csharpTranspiler.test.ts @@ -83,6 +83,7 @@ describe('csharp transpiling tests', () => { " public z1: string[] = [ 'a', 'b' ];\n" + " public z2: any = whatever;\n" + " public z3: any = {};\n" + + " public z4: any = Whatever;\n" + " mainFeature(message): void {\n" + " console.log(\"Hello! I'm inside main class:\" + message)\n" + " }\n" + @@ -95,6 +96,7 @@ describe('csharp transpiling tests', () => { " public List z1 = new List() {\"a\", \"b\"};\n" + " public Dictionary z2 = whatever;\n" + " public Dictionary z3 = new Dictionary() {};\n" + + " public Dictionary z4 = Whatever;\n" + "\n" + " public virtual void mainFeature(object message)\n" + " {\n" + diff --git a/tests/phpTranspiler.test.ts b/tests/phpTranspiler.test.ts index e140591..4503c30 100644 --- a/tests/phpTranspiler.test.ts +++ b/tests/phpTranspiler.test.ts @@ -303,6 +303,7 @@ describe('php transpiling tests', () => { " public static a1: string[] = [ 'a', 'b' ];\n" + " public static a2: any = whatever;\n" + " public static a3: any = {};\n" + + " public static a4: any = Whatever;\n" + " mainFeature(message) {\n" + " console.log(\"Hello! I'm inside main class:\" + message)\n" + " }\n" + @@ -312,8 +313,9 @@ describe('php transpiling tests', () => { " public static $x = 10;\n" + " public static $y = 'test';\n" + " public static $a1 = ['a', 'b'];\n" + - " public static $a2 = whatever;\n" + + " public static $a2 = $whatever;\n" + " public static $a3 = array();\n" + + " public static $a4 = Whatever;\n" + "\n" + " public function mainFeature($message) {\n" + " var_dump('Hello! I\\'m inside main class:' . $message);\n" + @@ -842,7 +844,7 @@ describe('php transpiling tests', () => { const output = transpiler.transpilePhp(ts).content; expect(output).toBe(php); }); - test.only('transpile constants & imports', () => { + test('transpile constants & imports', () => { const ts = "import { decimalToPrecision, ROUND, TRUNCATE, DECIMAL_PLACES, } from '../../somewhere.js';\n" + "const exc = new xyz ();\n" + "assert (exc.decimalToPrecision ('12.3456000', TRUNCATE, 100, DECIMAL_PLACES) === '12.3456');"; diff --git a/tests/pythonTranspiler.test.ts b/tests/pythonTranspiler.test.ts index 8a4b44f..bbcd5e1 100644 --- a/tests/pythonTranspiler.test.ts +++ b/tests/pythonTranspiler.test.ts @@ -252,6 +252,7 @@ describe('python tests', () => { " public static a1: string[] = [ 'a', 'b' ];\n" + " public static a2: any = whatever;\n" + " public static a3: any = {};\n" + + " public static a4: any = Whatever;\n" + " mainFeature(message) {\n" + " console.log(\"Hello! I'm inside main class:\" + message)\n" + " }\n" + @@ -263,6 +264,7 @@ describe('python tests', () => { " a1 = ['a', 'b']\n" + " a2 = whatever\n" + " a3 = {}\n" + + " a4 = Whatever\n" + "\n" + " def mainFeature(self, message):\n" + " print('Hello! I\\'m inside main class:' + message)"