-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsequences.yaml
66 lines (63 loc) · 1.34 KB
/
sequences.yaml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: "Sequence of inputs/expect, for testing stateful component"
topic: "DummyComponent"
cases:
-
name: 'correct data using spacy notation'
assertion: 'should pass'
inputs: # NOTE: should only sequence for stateful components. Normally use multiple testcases instead
-
in: true
-
in: false
expect:
-
out:
equals: true
-
out:
equals: false
-
name: 'correct data using compact notation'
assertion: 'should pass'
inputs:
- { in: 1000 }
- { in: 1001 }
expect:
- { out: { equals: 1000 } }
- { out: { equals: 1001 } }
# Failing cases
-
name: 'mismatch between number of inputs and expect'
assertion: 'should fail'
inputs:
- { in: 1000 }
expect:
- { out: { equals: 1000 } }
- { out: { equals: 1001 } }
-
name: 'first output in sequence wrong'
assertion: 'should fail'
inputs:
- { in: 1000 }
- { in: 1001 }
expect:
- { out: { equals: 42 } }
- { out: { equals: 1001 } }
-
name: 'second output in sequence wrong'
assertion: 'should fail'
inputs:
- { in: 1000 }
- { in: 1001 }
expect:
- { out: { equals: 1000 } }
- { out: { equals: 42 } }
-
name: 'all outputs in sequence wrong'
assertion: 'should fail'
inputs:
- { in: 0 }
- { in: 1 }
expect:
- { out: { equals: 2 } }
- { out: { equals: 3 } }