From 1c0503011cb0107ad6de6965e2b78d45f74ba9d7 Mon Sep 17 00:00:00 2001 From: Marten Lohstroh Date: Sun, 5 Nov 2023 12:18:03 -0800 Subject: [PATCH] Apply formatter --- test/Python/src/TagString.lf | 58 ++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/test/Python/src/TagString.lf b/test/Python/src/TagString.lf index e9154ee0d1..90e7436613 100644 --- a/test/Python/src/TagString.lf +++ b/test/Python/src/TagString.lf @@ -1,35 +1,35 @@ -// Tests the get_microstep() function in the python target. +# Tests the get_microstep() function in the python target. target Python { - fast: false -}; + fast: false +} + main reactor TagString { - preamble {= - import sys - =} - state s(1); + preamble {= + import sys + =} + state s = 1 - // timer t(0, 1 msec); - logical action l; - reaction(startup) -> l {= - l.schedule(0); - =} + logical action l # timer t(0, 1 msec); - reaction(l) -> l {= - tag_str = str(lf.tag()) - - if "Tag" in tag_str and \ - "time=" in tag_str and \ - "microstep=" in tag_str: - print("Successful tag string representation:", tag_str) - else: - self.sys.stderr.write( - f"expected tag string representation: " \ - "Tag(time=$time, microstep=$microstep), instead got: {}\n".format(tag_str)) - self.sys.exit(1) + reaction(startup) -> l {= + l.schedule(0); + =} - self.s += 1 - if self.s < 10: - l.schedule(0) - =} -} + reaction(l) -> l {= + tag_str = str(lf.tag()) + if "Tag" in tag_str and \ + "time=" in tag_str and \ + "microstep=" in tag_str: + print("Successful tag string representation:", tag_str) + else: + self.sys.stderr.write( + f"expected tag string representation: " \ + "Tag(time=$time, microstep=$microstep), instead got: {}\n".format(tag_str)) + self.sys.exit(1) + + self.s += 1 + if self.s < 10: + l.schedule(0) + =} +}