0028710: Implement 'BRepTools_History' history for algorithm 'ShapeUpgrade_UnifySameD...
[occt.git] / tests / heal / unify_same_domain / A4
CommitLineData
20aa0d3f 1puts "=========="
2puts "OCC28226"
3puts "=========="
4puts ""
5#####################################################################
6# Incorrect history support in ShapeUpgrade_UnifySameDomain algorithm
7#####################################################################
8
9restore [locate_data_file bug28228_face.brep] a
10
11explode a f
12explode a_1 v
13explode a e
14
15unifysamedom result a a_3 a_1_3 a_1_4
16
654c48b2 17set bug_info [unifysamedommod res a_9]
20aa0d3f 18set bug_info [string trim [string range $bug_info 0 [expr {[string first "\n" $bug_info] - 1}]]]
654c48b2 19if {$bug_info != "The shape has not been modified"} {
20aa0d3f 20 puts "ERROR: OCC28226 is reproduced. Command unifysamedommod does not work correctly."
21}
22
654c48b2 23set bug_info [unifysamedommod res a_10]
20aa0d3f 24if {$bug_info != ""} {
25 puts "ERROR: OCC28226 is reproduced. Command unifysamedommod does not work correctly."
26}
27
654c48b2 28set bug_info [unifysamedommod res a_11]
29if {$bug_info != ""} {
20aa0d3f 30 puts "ERROR: OCC28226 is reproduced. Command unifysamedommod does not work correctly."
31}
32
654c48b2 33set bug_info [unifysamedommod res a_3]
20aa0d3f 34set bug_info [string trim [string range $bug_info 0 [expr {[string first "\n" $bug_info] - 1}]]]
654c48b2 35if {$bug_info != ""} {
20aa0d3f 36 puts "ERROR: OCC28226 is reproduced. Command unifysamedommod does not work correctly."
37}
38
39set bug_info [unifysamedomisdel a_3]
40set bug_info [string trim [string range $bug_info 0 [expr {[string first "\n" $bug_info] - 1}]]]
41if {$bug_info != "The shape has not been deleted"} {
42 puts "ERROR: OCC28226 is reproduced. Command unifysamedomisdel does not work correctly."
43}
44
45set bug_info [unifysamedomisdel a_9]
46set bug_info [string trim [string range $bug_info 0 [expr {[string first "\n" $bug_info] - 1}]]]
47if {$bug_info != "The shape has been deleted"} {
48 puts "ERROR: OCC28226 is reproduced. Command unifysamedomisdel does not work correctly."
49}
50
51set bug_info [unifysamedomisdel a_1_8]
52set bug_info [string trim [string range $bug_info 0 [expr {[string first "\n" $bug_info] - 1}]]]
53if {$bug_info != "The shape has been deleted"} {
54 puts "ERROR: OCC28226 is reproduced. Command unifysamedomisdel does not work correctly."
55}
56
57set bug_info [unifysamedomisdel a_1_9]
58set bug_info [string trim [string range $bug_info 0 [expr {[string first "\n" $bug_info] - 1}]]]
59if {$bug_info != "The shape has been deleted"} {
60 puts "ERROR: OCC28226 is reproduced. Command unifysamedomisdel does not work correctly."
61}
62
63set bug_info [unifysamedomisdel a_10]
64set bug_info [string trim [string range $bug_info 0 [expr {[string first "\n" $bug_info] - 1}]]]
65if {$bug_info != "The shape has not been deleted"} {
66 puts "ERROR: OCC28226 is reproduced. Command unifysamedomisdel does not work correctly."
67}
68
69set bug_info [unifysamedomisdel a_11]
70set bug_info [string trim [string range $bug_info 0 [expr {[string first "\n" $bug_info] - 1}]]]
71if {$bug_info != "The shape has not been deleted"} {
72 puts "ERROR: OCC28226 is reproduced. Command unifysamedomisdel does not work correctly."
73}
74
75unifysamedom result2 a a_3 a_1_3 a_1_4 -e
76
77set bug_info [unifysamedomisdel a_1_8]
78set bug_info [string trim [string range $bug_info 0 [expr {[string first "\n" $bug_info] - 1}]]]
654c48b2 79if {$bug_info != "The shape has been deleted"} {
20aa0d3f 80 puts "ERROR: OCC28226 is reproduced. Command unifysamedomisdel does not work correctly."
81}
82
83set bug_info [unifysamedomisdel a_1_9]
84set bug_info [string trim [string range $bug_info 0 [expr {[string first "\n" $bug_info] - 1}]]]
85if {$bug_info != "The shape has been deleted"} {
86 puts "ERROR: OCC28226 is reproduced. Command unifysamedomisdel does not work correctly."
87}