Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wegendt-bosch committed Nov 18, 2019
1 parent bd87405 commit 1899a41
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
import org.junit.runners.Suite.SuiteClasses;

@SuiteClasses({
ArraysTest.class,
BasicControlStructuresTest.class,
EnumsTest.class,
FunctionOverloadingTest.class,
GlobalAndLocalVariables.class,
PrepareLoopForFunctionUnvravelingStageTest.class,
SensorAccessTest.class,
SetupTest.class,
StructsTest.class,
TryCatchGeneratorTest.class,
UnravelFunctionCallsTest.class,
SumTypesTest.class,
SetupTest.class,
GlobalAndLocalVariables.class,
ArraysTest.class,
SetupTest.class
TryCatchGeneratorTest.class,
UnravelFunctionCallsTest.class
})
@RunWith(Suite.class)
public class AllTests {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class BasicControlStructuresTest extends AbstractGeneratorTest {
''')

ast.assertNoCompileErrors();
val generatedFunction = ast.value.findFunction("HandleEvery100Millisecond1_worker");
val generatedFunction = ast.value.findFunction("HandleEvery100Millisecond_1_worker");
assertNotNull("No event handler was generated", generatedFunction);
val body = generatedFunction.body as IASTCompoundStatement;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class SensorAccessTest extends AbstractGeneratorTest {
''');
ast.assertNoCompileErrors();

val eventHandler = ast.value.findFunction("HandleEvery100Millisecond1_worker")
val eventHandler = ast.value.findFunction("HandleEvery100Millisecond_1_worker")
assertNotNull("No event handler was generated", eventHandler);
val body = eventHandler.body as IASTCompoundStatement;
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class TryCatchGeneratorTest extends AbstractGeneratorTest {
''');
ast.assertNoCompileErrors();

val eventHandler = ast.value.findFunction("HandleEvery100Millisecond1_worker")
val eventHandler = ast.value.findFunction("HandleEvery100Millisecond_1_worker")
assertNotNull("No event handler was generated", eventHandler);
val body = eventHandler.body as IASTCompoundStatement;

Expand Down Expand Up @@ -110,7 +110,7 @@ class TryCatchGeneratorTest extends AbstractGeneratorTest {
''');
ast.assertNoCompileErrors();

val eventHandler = ast.value.findFunction("HandleEvery100Millisecond1_worker")
val eventHandler = ast.value.findFunction("HandleEvery100Millisecond_1_worker")
assertNotNull("No event handler was generated", eventHandler);
val body = eventHandler.body as IASTCompoundStatement;

Expand Down Expand Up @@ -225,7 +225,7 @@ class TryCatchGeneratorTest extends AbstractGeneratorTest {
''');
ast.assertNoCompileErrors();

val eventHandler = ast.value.findFunction("HandleEvery100Millisecond1_worker")
val eventHandler = ast.value.findFunction("HandleEvery100Millisecond_1_worker")
assertNotNull("No event handler was generated", eventHandler);
val body = eventHandler.body as IASTCompoundStatement;

Expand Down

0 comments on commit 1899a41

Please sign in to comment.