blob: f92ff243dfb8c71a2a768b22d2e95cbf1e4c42c6 (
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
27
28
29
30
31
32
|
- given: a counter starting at {initial}
impl:
rust:
function: a_trivial_setup
cleanup: a_trivial_cleanup
types:
initial: int
- when: the counter is incremented
impl:
rust:
function: increment_counter
- then: the counter is {num}
impl:
rust:
function: check_counter
types:
num: number
- given: I have read the file {file} into {somename}
impl:
rust:
function: acquire_file_content
types:
file: file
somename: text
- when: I look at {somename}
impl:
rust:
function: remember_target
- then: I see "{text:text}"
impl:
rust:
function: check_contents
|