blob: 410e45625019a4ed5c4886c25ac7cf38a0f67501 [file] [log] [blame]
matozoidad6be9f2016-07-13 14:26:13 +02001Scenario: a position is equal to another position at the same place
2Given the position 10, 10
3When I compare to position 10, 10
4Then the positions are equal
5And it is not before the first position
6And it is not after the first position
7
8Scenario: a position is after another position
9Given the position 10, 10
10When I compare to position 20, 20
11Then it is after the first position
12And the positions are not equal
13And it is not before the first position
14
15Scenario: a position is directly after another position
16Given the position 10, 10
17When I compare to position 10, 11
18Then it is after the first position
19And the positions are not equal
20And it is not before the first position
21
22Scenario: a position is before another position
23Given the position 10, 10
24When I compare to position 5, 5
25Then it is before the first position
26And the positions are not equal
27And it is not after the first position
28
29Scenario: a position is directly before another position
30Given the position 10, 10
31When I compare to position 10, 9
32Then it is before the first position
33And the positions are not equal
34And it is not after the first position
35
36Scenario: a range is equal to another range
matozoidbdcc2f92016-07-13 14:59:29 +020037Given the range 10, 10 - 20, 20
38When I compare to range 10, 10 - 20, 20
39Then the ranges are equal
40
matozoidad6be9f2016-07-13 14:26:13 +020041Scenario: a range is before a position
matozoidbdcc2f92016-07-13 14:59:29 +020042Given the position 20, 21
43When I compare to range 10, 10 - 20, 20
44Then it is before the position
45
matozoidad6be9f2016-07-13 14:26:13 +020046Scenario: a range is after a position
matozoidbdcc2f92016-07-13 14:59:29 +020047Given the position 10, 9
48When I compare to range 10, 10 - 20, 20
49Then it is after the position
50
matozoidad6be9f2016-07-13 14:26:13 +020051Scenario: a range is contained in another range
matozoidbdcc2f92016-07-13 14:59:29 +020052Given the range 10, 10 - 20, 20
53When I compare to range 11, 11 - 19, 19
54Then it is contained in the first range
matozoidad6be9f2016-07-13 14:26:13 +020055