@@ -173,40 +173,27 @@ end
173
173
end
174
174
175
175
176
- @testset " taylor_compatible" begin
177
- taylor_compatible = Diffractor. taylor_compatible
178
-
179
- @test taylor_compatible (
180
- TaylorBundle {1} (10.0 , (20.0 ,)),
181
- TaylorBundle {1} (20.0 , (30.0 ,))
182
- )
183
- @test ! taylor_compatible (
184
- TaylorBundle {1} (10.0 , (20.0 ,)),
185
- TaylorBundle {1} (21.0 , (30.0 ,))
186
- )
187
- @test taylor_compatible (
188
- TaylorBundle {2} (10.0 , (20.0 , 30. )),
189
- TaylorBundle {2} (20.0 , (30.0 , 40. ))
190
- )
191
- @test ! taylor_compatible (
192
- TaylorBundle {2} (10.0 , (20.0 , 30.0 )),
193
- TaylorBundle {2} (20.0 , (31.0 , 40.0 ))
194
- )
195
-
196
-
176
+ @testset " find_taylor_incompatibility" begin
177
+ find_taylor_incompatibility = Diffractor. find_taylor_incompatibility
197
178
tuptan (args... ) = Tangent {typeof(args)} (args... )
198
- @test taylor_compatible (
179
+
180
+ @test find_taylor_incompatibility (
199
181
TaylorBundle {1} ((10.0 , 20.0 ), (tuptan (20.0 , 30.0 ),)),
200
- )
201
- @test taylor_compatible (
182
+ ) == - 1
183
+ @test find_taylor_incompatibility (
202
184
TaylorBundle {2} ((10.0 , 20.0 ), (tuptan (20.0 , 30.0 ),tuptan (30.0 , 40.0 ))),
203
- )
204
- @test ! taylor_compatible (
185
+ ) == - 1
186
+
187
+ @test find_taylor_incompatibility (
205
188
TaylorBundle {1} ((10.0 , 20.0 ), (tuptan (21.0 , 30.0 ),)),
206
- )
207
- @test ! taylor_compatible (
208
- TaylorBundle {2} ((10.0 , 20.0 ), (tuptan (20.0 , 31.0 ),tuptan (30.0 , 40.0 ))),
209
- )
189
+ ) == 0
190
+
191
+ @test find_taylor_incompatibility (
192
+ TaylorBundle {2} ((10.0 , 20.0 ), (tuptan (21.0 , 30.0 ), tuptan (30.0 , 40.0 ))),
193
+ ) == 0
194
+ @test find_taylor_incompatibility (
195
+ TaylorBundle {2} ((10.0 , 20.0 ), (tuptan (20.0 , 31.0 ), tuptan (30.0 , 40.0 ))),
196
+ ) == 1
210
197
end
211
198
212
199
end # module
0 commit comments