@@ -14,7 +14,7 @@ function test_all_combos()
14
14
@test length (dr) == 0
15
15
@test isempty (dr)
16
16
@test first (dr) == f1
17
- @test last (dr) == f1- one (l1 - f1)
17
+ @test last (dr) < f1
18
18
@test length ([i for i in dr]) == 0
19
19
@test_throws ArgumentError minimum (dr)
20
20
@test_throws ArgumentError maximum (dr)
@@ -23,8 +23,8 @@ function test_all_combos()
23
23
@test [dr;] == T[]
24
24
@test isempty (reverse (dr))
25
25
@test length (reverse (dr)) == 0
26
- @test first (reverse (dr)) == f1- one (l1 - f1)
27
- @test last (reverse (dr)) = = f1
26
+ @test first (reverse (dr)) < f1
27
+ @test last (reverse (dr)) > = f1
28
28
@test issorted (dr)
29
29
@test sortperm (dr) == 1 : 1 : 0
30
30
@test ! (f1 in dr)
@@ -66,7 +66,7 @@ function test_all_combos()
66
66
@test length (dr) == 0
67
67
@test isempty (dr)
68
68
@test first (dr) == l1
69
- @test last (dr) == l1+ one (l1 - f1)
69
+ @test last (dr) > l1
70
70
@test length ([i for i in dr]) == 0
71
71
@test_throws ArgumentError minimum (dr)
72
72
@test_throws ArgumentError maximum (dr)
@@ -75,8 +75,8 @@ function test_all_combos()
75
75
@test [dr;] == T[]
76
76
@test isempty (reverse (dr))
77
77
@test length (reverse (dr)) == 0
78
- @test first (reverse (dr)) == l1+ one (l1 - f1)
79
- @test last (reverse (dr)) = = l1
78
+ @test first (reverse (dr)) > l1
79
+ @test last (reverse (dr)) < = l1
80
80
@test ! issorted (dr)
81
81
@test sortperm (dr) == 0 : - 1 : 1
82
82
@test ! (l1 in dr)
@@ -119,7 +119,7 @@ function test_all_combos()
119
119
@test length (dr) == 0
120
120
@test isempty (dr)
121
121
@test first (dr) == f1
122
- @test last (dr) == f1- one (l1 - f1)
122
+ @test last (dr) < f1
123
123
@test length ([i for i in dr]) == 0
124
124
@test_throws ArgumentError minimum (dr)
125
125
@test_throws ArgumentError maximum (dr)
@@ -128,8 +128,8 @@ function test_all_combos()
128
128
@test [dr;] == T[]
129
129
@test isempty (reverse (dr))
130
130
@test length (reverse (dr)) == 0
131
- @test first (reverse (dr)) == f1- one (l1 - f1)
132
- @test last (reverse (dr)) = = f1
131
+ @test first (reverse (dr)) < f1
132
+ @test last (reverse (dr)) > = f1
133
133
@test issorted (dr)
134
134
@test sortperm (dr) == 1 : 1 : 0
135
135
@test ! (f1 in dr)
@@ -171,7 +171,7 @@ function test_all_combos()
171
171
@test length (dr) == 0
172
172
@test isempty (dr)
173
173
@test first (dr) == l1
174
- @test last (dr) == l1+ one (l1 - f1)
174
+ @test last (dr) > l1
175
175
@test length ([i for i in dr]) == 0
176
176
@test_throws ArgumentError minimum (dr)
177
177
@test_throws ArgumentError maximum (dr)
@@ -180,7 +180,7 @@ function test_all_combos()
180
180
@test [dr;] == T[]
181
181
@test isempty (reverse (dr))
182
182
@test length (reverse (dr)) == 0
183
- @test first (reverse (dr)) == l1+ one (l1 - f1)
183
+ @test first (reverse (dr)) > l1
184
184
@test last (reverse (dr)) <= l1
185
185
@test ! issorted (dr)
186
186
@test sortperm (dr) == 0 : - 1 : 1
0 commit comments