diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2015-12-08 21:38:50 +0200 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2015-12-08 21:38:50 +0200 |
| commit | d6d401c83f186e72a105821e60a856ca4d5c998c (patch) | |
| tree | 55e19022be522c3616ef2ffef2244c2a8fbbf6b8 /tests | |
| download | lbasi-d6d401c83f186e72a105821e60a856ca4d5c998c.tar.gz lbasi-d6d401c83f186e72a105821e60a856ca4d5c998c.zip | |
part 1 + tests
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/calc1.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/calc1.txt b/tests/calc1.txt new file mode 100644 index 0000000..a343306 --- /dev/null +++ b/tests/calc1.txt @@ -0,0 +1,26 @@ +*** Settings *** +Library Process + +*** Keywords *** +Run Calculator + [Arguments] ${expr} + ${result} = Run Process ${CURDIR}/../calc1 ${expr} + [Return] ${result} + +Calculate + [Arguments] ${expr} + ${rc} = Run Calculator ${expr} + Should Be Equal As Integers ${rc.rc} 0 + ${result} = Get Variable Value ${rc.stdout} + [Return] ${result} + +The result of ${calculation} should be ${expected} + ${result} = Calculate ${calculation} + Should Be Equal As Integers ${expected} ${result} + +*** Test Cases *** +Simple calculations + [Template] The result of ${calculations} should be ${expected} + 1-1 0 + 100-3 97 + 50${SPACE*5}- 5 45 |
