diff options
author | Xipmix <576337-xipmix@users.noreply.gitlab.com> | 2022-03-16 21:03:50 +1100 |
---|---|---|
committer | Xipmix <576337-xipmix@users.noreply.gitlab.com> | 2022-03-16 21:06:17 +1100 |
commit | a50f1c5133814011f9ca1bb97d15976c7e623585 (patch) | |
tree | 17ed5d606450f7c5faf99a466c1c45f4235c527d /subplot.md | |
parent | d232b544030f0ba7922a1ba5462b80e7c2ac3f57 (diff) | |
download | subplot-a50f1c5133814011f9ca1bb97d15976c7e623585.tar.gz |
trailing space in python impls
Diffstat (limited to 'subplot.md')
-rw-r--r-- | subplot.md | 58 |
1 files changed, 29 insertions, 29 deletions
@@ -291,7 +291,7 @@ $ cargo run --bin subplot codegen -- subplot.md -o test.py $ python3 test.py ... much output OK, all scenarios finished successfully -$ +$ ~~~ To test an installed Subplot, generate the test program, and tell the @@ -304,7 +304,7 @@ $ cargo run --bin subplot codegen -- subplot.md -o test.py $ python3 test.py --env SUBPLOT_DIR=/usr/local/bin ... much output OK, all scenarios finished successfully -$ +$ ~~~ You can do this with an installed Subplot as well: @@ -689,22 +689,22 @@ There are some flexibilities in bindings, futher details can be found below: ~~~{.yaml .numberLines} - given: "a standard setup" impl: - python: + python: function: create_standard_setup - when: "{thing} happens" impl: - python: + python: function: make_thing_happen types: thing: word - when: "I say (?P<sentence>.+) with a smile" regex: true impl: - python: + python: function: speak - then: "everything is OK" impl: - python: + python: function: check_everything_is_ok ~~~ @@ -1021,37 +1021,37 @@ then bar was done ~~~{#b.yaml .file .yaml .numberLines} - given: precondition foo impl: - python: + python: function: precond_foo bash: function: precond_foo - when: I do bar impl: - python: + python: function: do_bar bash: function: do_bar - when: I do foobar impl: - python: + python: function: do_foobar bash: function: do_foobar - then: bar was done impl: - python: + python: function: bar_was_done bash: function: bar_was_done - then: foobar was done impl: - python: + python: function: foobar_was_done bash: function: foobar_was_done - given: file {filename} impl: - python: + python: function: provide_file bash: function: provide_file @@ -1322,7 +1322,7 @@ test this for every language template we support. ~~~{#cleanup.yaml .file .yaml .numberLines} - given: foo impl: - python: + python: function: foo cleanup: foo_cleanup bash: @@ -1330,7 +1330,7 @@ test this for every language template we support. cleanup: foo_cleanup - given: bar impl: - python: + python: function: bar cleanup: bar_cleanup bash: @@ -1338,7 +1338,7 @@ test this for every language template we support. cleanup: bar_cleanup - given: failure impl: - python: + python: function: failure cleanup: failure_cleanup bash: @@ -1555,7 +1555,7 @@ then TMPDIR is set ~~~{#tmpdir.yaml .file .yaml .numberLines} - then: TMPDIR is set impl: - python: + python: function: tmpdir_is_set ~~~ @@ -1607,7 +1607,7 @@ given I am Tomjon ~~~{#simplepattern.yaml .file .yaml .numberLines} - given: I am {name} impl: - python: + python: function: func ~~~ @@ -1651,7 +1651,7 @@ given I* am Tomjon ~~~{#confusedpattern.yaml .file .yaml .numberLines} - given: I* am {name} impl: - python: + python: function: func ~~~ @@ -1684,7 +1684,7 @@ given I* am Tomjon ~~~{#confusedbutok.yaml .file .yaml .numberLines} - given: I* am {name} impl: - python: + python: function: func regex: false ~~~ @@ -1721,7 +1721,7 @@ given I am Tomjon ~~~{#regex.yaml .file .yaml .numberLines} - given: I am (?P<name>\S+) impl: - python: + python: function: func regex: true ~~~ @@ -1772,12 +1772,12 @@ then expanded "${foo}" is bar ~~~{#values.yaml .file .yaml .numberLines} - when: I remember {name} as {value} impl: - python: + python: function: remember - + - then: expanded "{actual}" is {expected} impl: - python: + python: function: check ~~~ @@ -1842,7 +1842,7 @@ then environment variable FOO is set to "bar" ~~~{#env.yaml .file .yaml .numberLines} - then: environment variable {name} is set to "{value:text}" impl: - python: + python: function: is_set_to ~~~ @@ -2779,16 +2779,16 @@ binding. ```{#badbindings.yaml .file .yaml} - given: a binding impl: - python: + python: function: a_binding - given: a (?:broken)? binding impl: - python: + python: function: a_broken_binding regex: true - given: a capitalised Binding impl: - python: + python: function: os.getcwd case_sensitive: true ``` @@ -2861,11 +2861,11 @@ given a binding ~~~{#twobindings.yaml .file .yaml} - given: a {xyzzy} impl: - python: + python: function: a_function - given: a {plugh} impl: - python: + python: function: a_function ~~~ |