0027162: Draw command "(2d)extrema" incorrectly represent underlying algorithm results
[occt.git] / tests / bugs / modalg_6 / bug26075
index 19109de..c7cff4d 100644 (file)
@@ -12,7 +12,7 @@ mkcurve c1 s1
 mkcurve c2 s2
 set bug_info [extrema c1 c2]
 
 mkcurve c2 s2
 set bug_info [extrema c1 c2]
 
-set bug_info [string range $bug_info [expr {[string first "\n" $bug_info] + 1}] [expr {[string last "\n" $bug_info] - 1}]]
-if {$bug_info != "No solutions!"} {
+set bug_info [string range $bug_info [expr {[string first "Infinite" $bug_info]}] [expr {[string first "distance" $bug_info] - 3}]]
+if {$bug_info != "Infinite number of extremas"} {
   puts "ERROR: OCC26075 is reproduced. Flag IsParallel is not returned."
 }
   puts "ERROR: OCC26075 is reproduced. Flag IsParallel is not returned."
 }