Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andry-tino opened this issue Jun 27, 2017 · 0 comments
Open

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

andry-tino opened this issue Jun 27, 2017 · 0 comments

Comments

@andry-tino
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant