From ff132b7d6bfbcd6d060b9dfc3c2685481e9bd889 Mon Sep 17 00:00:00 2001 From: "benjamin.franksen" <benjamin.franksen@helmholtz-berlin.de> Date: Tue, 7 Jun 2011 10:45:50 +0000 Subject: [PATCH] test/compiler: reformated sncExOpt_* --- test/compiler/sncExOpt_DuplOpt.st | 59 ++++++++++++------------------ test/compiler/sncExOpt_UnrecOpt.st | 57 ++++++++++++----------------- 2 files changed, 47 insertions(+), 69 deletions(-) diff --git a/test/compiler/sncExOpt_DuplOpt.st b/test/compiler/sncExOpt_DuplOpt.st index de11bf65..3f08c832 100644 --- a/test/compiler/sncExOpt_DuplOpt.st +++ b/test/compiler/sncExOpt_DuplOpt.st @@ -3,39 +3,28 @@ float v; assign v to "grw:xxxExample"; monitor v; -ss ss1 -{ - state low - { - option +t; - entry - { - printf("Will do this on entry"); - printf("Another thing to do on entry"); - } - when(v>5.0) - { - printf("now changing to high\n"); - } state high - when(delay(.1)) - { - } state low - exit - { - printf("Something to do on exit"); - } - - } - state high - { - option -t; - option +t; - when(v<=5.0) - { - printf("changing to low\n"); - } state low - when(delay(.1)) - { - } state high - } +ss ss1 { + state low { + option + t; + entry { + printf("Will do this on entry"); + printf("Another thing to do on entry"); + } + when(v > 5.0) { + printf("now changing to high\n"); + } state high + when(delay(.1)) { + } state low + exit { + printf("Something to do on exit"); + } + } state high { + option - t; + option + t; + when(v <= 5.0) { + printf("changing to low\n"); + } state low + when(delay(.1)) { + } state high + } } diff --git a/test/compiler/sncExOpt_UnrecOpt.st b/test/compiler/sncExOpt_UnrecOpt.st index ee070745..8b1cf90c 100644 --- a/test/compiler/sncExOpt_UnrecOpt.st +++ b/test/compiler/sncExOpt_UnrecOpt.st @@ -3,38 +3,27 @@ float v; assign v to "grw:xxxExample"; monitor v; -ss ss1 -{ - state low - { - option +tc; - entry - { - printf("Will do this on entry"); - printf("Another thing to do on entry"); - } - when(v>5.0) - { - printf("now changing to high\n"); - } state high - when(delay(.1)) - { - } state low - exit - { - printf("Something to do on exit"); - } - - } - state high - { - option -t; - when(v<=5.0) - { - printf("changing to low\n"); - } state low - when(delay(.1)) - { - } state high - } +ss ss1 { + state low { + option + tc; + entry { + printf("Will do this on entry"); + printf("Another thing to do on entry"); + } + when(v > 5.0) { + printf("now changing to high\n"); + } state high + when(delay(.1)) { + } state low + exit { + printf("Something to do on exit"); + } + } state high { + option - t; + when(v <= 5.0) { + printf("changing to low\n"); + } state low + when(delay(.1)) { + } state high + } } -- GitLab