andry-tino / Rosetta

Toolset for migrating your codebase from C# to TypeScript
http://antino-enlad.cloudapp.net:8080/job/Rosetta/
GNU General Public License v3.0
24 stars 9 forks source link

Missing semicolons in if-statements (TU rendering tests) #48

Open andry-tino opened 7 years ago

andry-tino commented 7 years ago

TU Rendering tests found a problem in if statements for which, in body, semicolons are not rendered.

Report
------
Showing test results:
Showing summary:
ConditionalStatements.IfStatement.ts => Fail
ConditionalStatements.IfElseStatement.ts => Fail
ExpressionStatements.ReturnStatement.ts => Pass
ExpressionStatements.ReturnVoidStatement.ts => Pass
ExpressionStatements.ThrowStatement.ts => Pass
ExpressionStatements.ThrowVoidStatement.ts => Pass
KeywordStatements.BreakStatement.ts => Pass
KeywordStatements.ContinueStatement.ts => Pass

Summary
-------
ConditionalStatements.IfStatement.ts
------------------------------------
Found 5 difference(s).
LEFT
====
if (true)
{
  var variable2 : number = 14
}
RIGHT
====
if (true)
{
  var variable2: number = 14;
}

ConditionalStatements.IfElseStatement.ts
----------------------------------------
Found 9 difference(s).
LEFT
====
if (true)
{
  var variable2 : string = 'Hello'
}
else
{
  var variable1 : number = 100 * 21
}
RIGHT
====
if (true)
{
  var variable2: string = 'Hello';
}
else
{
  var variable1: number = 100 * 21;
}

ExpressionStatements.ReturnStatement.ts is OK

ExpressionStatements.ReturnVoidStatement.ts is OK

ExpressionStatements.ThrowStatement.ts is OK

ExpressionStatements.ThrowVoidStatement.ts is OK

KeywordStatements.BreakStatement.ts is OK

KeywordStatements.ContinueStatement.ts is OK

Tests

Tests for conditional statements in TranslationUnits.Renderings.Data have been disabled.