aboutsummaryrefslogtreecommitdiffstats
path: root/javaparser-testing/src/test/resources/com/github/javaparser/bdd/position_range_scenarios.story
blob: 410e45625019a4ed5c4886c25ac7cf38a0f67501 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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