diff options
| author | Oleh Prypin <oleh@pryp.in> | 2021-01-20 10:48:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-20 10:48:45 +0100 |
| commit | 6f4309217326430145564ae8b1bb393ea684f39f (patch) | |
| tree | bf4025a5e709426dc927c4afc4fd2286f8450ed9 /tests/examplefiles/floscript | |
| parent | f0445be718da83541ea3401aad882f3937147263 (diff) | |
| download | pygments-git-6f4309217326430145564ae8b1bb393ea684f39f.tar.gz | |
Also add auto-updatable output-based tests to examplefiles (#1689)
Co-authored-by: Georg Brandl <georg@python.org>
Diffstat (limited to 'tests/examplefiles/floscript')
| -rw-r--r-- | tests/examplefiles/floscript/example.flo | 40 | ||||
| -rw-r--r-- | tests/examplefiles/floscript/example.flo.output | 314 |
2 files changed, 354 insertions, 0 deletions
diff --git a/tests/examplefiles/floscript/example.flo b/tests/examplefiles/floscript/example.flo new file mode 100644 index 00000000..2d4ab5e7 --- /dev/null +++ b/tests/examplefiles/floscript/example.flo @@ -0,0 +1,40 @@ +#example mission box1.flo +#from: https://github.com/ioflo/ioflo + +house box1 + + framer vehiclesim be active first vehicle_run + frame vehicle_run + do simulator motion uuv + + framer mission be active first northleg + frame northleg + set elapsed with 20.0 + set heading with 0.0 + set depth with 5.0 + set speed with 2.5 + go next if elapsed >= goal + + frame eastleg + set heading with 90.0 + go next if elapsed >= goal + + frame southleg + set heading with 180.0 + go next if elapsed >= goal + + frame westleg + set heading with 270.0 + go next if elapsed >= goal + + frame mission_stop + bid stop vehiclesim + bid stop autopilot + bid stop me + + framer autopilot be active first autopilot_run + frame autopilot_run + do controller pid speed + do controller pid heading + do controller pid depth + do controller pid pitch
\ No newline at end of file diff --git a/tests/examplefiles/floscript/example.flo.output b/tests/examplefiles/floscript/example.flo.output new file mode 100644 index 00000000..47e11559 --- /dev/null +++ b/tests/examplefiles/floscript/example.flo.output @@ -0,0 +1,314 @@ +'#example mission box1.flo' Comment.Singleline +'\n' Text + +'#from: https://github.com/ioflo/ioflo' Comment.Singleline +'\n' Text + +'\n' Text + +'house' Keyword +' ' Text +'box1' Name +'\n' Text + +'\n' Text + +' ' Text +'framer' Keyword +' ' Text +'vehiclesim' Name +' ' Text +'be' Operator.Word +' ' Text +'active' Name +' ' Text +'first' Name.Builtin +' ' Text +'vehicle_run' Name +'\n' Text + +' ' Text +'frame' Keyword +' ' Text +'vehicle_run' Name +'\n' Text + +' ' Text +'do' Name.Builtin +' ' Text +'simulator' Name +' ' Text +'motion' Name +' ' Text +'uuv' Name +'\n' Text + +'\n' Text + +' ' Text +'framer' Keyword +' ' Text +'mission' Name +' ' Text +'be' Operator.Word +' ' Text +'active' Name +' ' Text +'first' Name.Builtin +' ' Text +'northleg' Name +'\n' Text + +' ' Text +'frame' Keyword +' ' Text +'northleg' Name +'\n' Text + +' ' Text +'set' Name.Builtin +' ' Text +'elapsed' Name +' ' Text +'with' Operator.Word +' ' Text +'20.0' Literal.Number.Float +'\n' Text + +' ' Text +'set' Name.Builtin +' ' Text +'heading' Name +' ' Text +'with' Operator.Word +' ' Text +'0.0' Literal.Number.Float +'\n' Text + +' ' Text +'set' Name.Builtin +' ' Text +'depth' Name +' ' Text +'with' Operator.Word +' ' Text +'5.0' Literal.Number.Float +'\n' Text + +' ' Text +'set' Name.Builtin +' ' Text +'speed' Name +' ' Text +'with' Operator.Word +' ' Text +'2.5' Literal.Number.Float +'\n' Text + +' ' Text +'go' Name.Builtin +' ' Text +'next' Name.Builtin +' ' Text +'if' Operator.Word +' ' Text +'elapsed' Name +' ' Text +'>' Operator +'=' Operator +' ' Text +'goal' Name +'\n' Text + +'\n' Text + +' ' Text +'frame' Keyword +' ' Text +'eastleg' Name +'\n' Text + +' ' Text +'set' Name.Builtin +' ' Text +'heading' Name +' ' Text +'with' Operator.Word +' ' Text +'90.0' Literal.Number.Float +'\n' Text + +' ' Text +'go' Name.Builtin +' ' Text +'next' Name.Builtin +' ' Text +'if' Operator.Word +' ' Text +'elapsed' Name +' ' Text +'>' Operator +'=' Operator +' ' Text +'goal' Name +'\n' Text + +'\n' Text + +' ' Text +'frame' Keyword +' ' Text +'southleg' Name +'\n' Text + +' ' Text +'set' Name.Builtin +' ' Text +'heading' Name +' ' Text +'with' Operator.Word +' ' Text +'180.0' Literal.Number.Float +'\n' Text + +' ' Text +'go' Name.Builtin +' ' Text +'next' Name.Builtin +' ' Text +'if' Operator.Word +' ' Text +'elapsed' Name +' ' Text +'>' Operator +'=' Operator +' ' Text +'goal' Name +'\n' Text + +'\n' Text + +' ' Text +'frame' Keyword +' ' Text +'westleg' Name +'\n' Text + +' ' Text +'set' Name.Builtin +' ' Text +'heading' Name +' ' Text +'with' Operator.Word +' ' Text +'270.0' Literal.Number.Float +'\n' Text + +' ' Text +'go' Name.Builtin +' ' Text +'next' Name.Builtin +' ' Text +'if' Operator.Word +' ' Text +'elapsed' Name +' ' Text +'>' Operator +'=' Operator +' ' Text +'goal' Name +'\n' Text + +'\n' Text + +' ' Text +'frame' Keyword +' ' Text +'mission_stop' Name +'\n' Text + +' ' Text +'bid' Name.Builtin +' ' Text +'stop' Name.Builtin +' ' Text +'vehiclesim' Name +'\n' Text + +' ' Text +'bid' Name.Builtin +' ' Text +'stop' Name.Builtin +' ' Text +'autopilot' Name +'\n' Text + +' ' Text +'bid' Name.Builtin +' ' Text +'stop' Name.Builtin +' ' Text +'me' Name +'\n' Text + +'\n' Text + +' ' Text +'framer' Keyword +' ' Text +'autopilot' Name +' ' Text +'be' Operator.Word +' ' Text +'active' Name +' ' Text +'first' Name.Builtin +' ' Text +'autopilot_run' Name +'\n' Text + +' ' Text +'frame' Keyword +' ' Text +'autopilot_run' Name +'\n' Text + +' ' Text +'do' Name.Builtin +' ' Text +'controller' Name +' ' Text +'pid' Name +' ' Text +'speed' Name +'\n' Text + +' ' Text +'do' Name.Builtin +' ' Text +'controller' Name +' ' Text +'pid' Name +' ' Text +'heading' Name +'\n' Text + +' ' Text +'do' Name.Builtin +' ' Text +'controller' Name +' ' Text +'pid' Name +' ' Text +'depth' Name +'\n' Text + +' ' Text +'do' Name.Builtin +' ' Text +'controller' Name +' ' Text +'pid' Name +' ' Text +'pitch' Name +'\n' Text |
