diff options
author | Pekka Kl?rck <devnull@localhost> | 2012-11-29 18:04:13 +0200 |
---|---|---|
committer | Pekka Kl?rck <devnull@localhost> | 2012-11-29 18:04:13 +0200 |
commit | c2f2bbea0e6490259150fe85f4332d4adc5fe8ee (patch) | |
tree | 85b3835627c9f6a2cbdac7b896db055ea4873f92 /tests | |
parent | 60f6c4a781b03dade3b0e58956ecefa4330e3e0e (diff) | |
download | pygments-c2f2bbea0e6490259150fe85f4332d4adc5fe8ee.tar.gz |
Lexer for Robot Framework test data.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examplefiles/robotframework.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/examplefiles/robotframework.txt b/tests/examplefiles/robotframework.txt new file mode 100644 index 00000000..63ba63e6 --- /dev/null +++ b/tests/examplefiles/robotframework.txt @@ -0,0 +1,39 @@ +*** Settings *** +Documentation Simple example demonstrating syntax highlighting. +Library ExampleLibrary +Test Setup Keyword argument argument with ${VARIABLE} + +*** Variables *** +${VARIABLE} Variable value +@{LIST} List variable here + +*** Test Cases *** +Keyword-driven example + Initialize System + Do Something + Result Should Be 42 + [Teardown] Cleanup System + +Data-driven example + [Template] Keyword + argument1 argument2 + argument ${VARIABLE} + @{LIST} + +Gherkin + Given system is initialized + When something is done + Then result should be "42" + +| Pipes | +| | [Documentation] | Also pipe separated format is supported. | +| | Log | As this example demonstrates. | + +*** Keywords *** +Result Should Be + [Arguments] ${expected} + ${actual} = Get Value + Should be Equal ${actual} ${expected} + +Then result should be "${expected}" + Result Should Be ${expected} |