matozoid | ad6be9f | 2016-07-13 14:26:13 +0200 | [diff] [blame] | 1 | Scenario: a position is equal to another position at the same place |
| 2 | Given the position 10, 10 |
| 3 | When I compare to position 10, 10 |
| 4 | Then the positions are equal |
| 5 | And it is not before the first position |
| 6 | And it is not after the first position |
| 7 | |
| 8 | Scenario: a position is after another position |
| 9 | Given the position 10, 10 |
| 10 | When I compare to position 20, 20 |
| 11 | Then it is after the first position |
| 12 | And the positions are not equal |
| 13 | And it is not before the first position |
| 14 | |
| 15 | Scenario: a position is directly after another position |
| 16 | Given the position 10, 10 |
| 17 | When I compare to position 10, 11 |
| 18 | Then it is after the first position |
| 19 | And the positions are not equal |
| 20 | And it is not before the first position |
| 21 | |
| 22 | Scenario: a position is before another position |
| 23 | Given the position 10, 10 |
| 24 | When I compare to position 5, 5 |
| 25 | Then it is before the first position |
| 26 | And the positions are not equal |
| 27 | And it is not after the first position |
| 28 | |
| 29 | Scenario: a position is directly before another position |
| 30 | Given the position 10, 10 |
| 31 | When I compare to position 10, 9 |
| 32 | Then it is before the first position |
| 33 | And the positions are not equal |
| 34 | And it is not after the first position |
| 35 | |
| 36 | Scenario: a range is equal to another range |
matozoid | bdcc2f9 | 2016-07-13 14:59:29 +0200 | [diff] [blame] | 37 | Given the range 10, 10 - 20, 20 |
| 38 | When I compare to range 10, 10 - 20, 20 |
| 39 | Then the ranges are equal |
| 40 | |
matozoid | ad6be9f | 2016-07-13 14:26:13 +0200 | [diff] [blame] | 41 | Scenario: a range is before a position |
matozoid | bdcc2f9 | 2016-07-13 14:59:29 +0200 | [diff] [blame] | 42 | Given the position 20, 21 |
| 43 | When I compare to range 10, 10 - 20, 20 |
| 44 | Then it is before the position |
| 45 | |
matozoid | ad6be9f | 2016-07-13 14:26:13 +0200 | [diff] [blame] | 46 | Scenario: a range is after a position |
matozoid | bdcc2f9 | 2016-07-13 14:59:29 +0200 | [diff] [blame] | 47 | Given the position 10, 9 |
| 48 | When I compare to range 10, 10 - 20, 20 |
| 49 | Then it is after the position |
| 50 | |
matozoid | ad6be9f | 2016-07-13 14:26:13 +0200 | [diff] [blame] | 51 | Scenario: a range is contained in another range |
matozoid | bdcc2f9 | 2016-07-13 14:59:29 +0200 | [diff] [blame] | 52 | Given the range 10, 10 - 20, 20 |
| 53 | When I compare to range 11, 11 - 19, 19 |
| 54 | Then it is contained in the first range |
matozoid | ad6be9f | 2016-07-13 14:26:13 +0200 | [diff] [blame] | 55 | |