blob: a34330694d13d5418c01762db7247d3d8ddc46c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|