blob: 410e45625019a4ed5c4886c25ac7cf38a0f67501 [file] [log] [blame]
Scenario: a position is equal to another position at the same place
Given the position 10, 10
When I compare to position 10, 10
Then the positions are equal
And it is not before the first position
And it is not after the first position
Scenario: a position is after another position
Given the position 10, 10
When I compare to position 20, 20
Then it is after the first position
And the positions are not equal
And it is not before the first position
Scenario: a position is directly after another position
Given the position 10, 10
When I compare to position 10, 11
Then it is after the first position
And the positions are not equal
And it is not before the first position
Scenario: a position is before another position
Given the position 10, 10
When I compare to position 5, 5
Then it is before the first position
And the positions are not equal
And it is not after the first position
Scenario: a position is directly before another position
Given the position 10, 10
When I compare to position 10, 9
Then it is before the first position
And the positions are not equal
And it is not after the first position
Scenario: a range is equal to another range
Given the range 10, 10 - 20, 20
When I compare to range 10, 10 - 20, 20
Then the ranges are equal
Scenario: a range is before a position
Given the position 20, 21
When I compare to range 10, 10 - 20, 20
Then it is before the position
Scenario: a range is after a position
Given the position 10, 9
When I compare to range 10, 10 - 20, 20
Then it is after the position
Scenario: a range is contained in another range
Given the range 10, 10 - 20, 20
When I compare to range 11, 11 - 19, 19
Then it is contained in the first range