]> OCCT Git - occt-copy.git/commitdiff
0023371: Expression which check of change of square/volume/length in end files doesn...
authorski <ski@pencascade.com>
Mon, 20 Aug 2012 09:33:29 +0000 (13:33 +0400)
committerski <ski@pencascade.com>
Mon, 20 Aug 2012 09:33:29 +0000 (13:33 +0400)
Modified END files
Corrected tests cases due to modification of END files

16 files changed:
tests/blend/end
tests/blend/tolblend_buildvol/A3
tests/blend/tolblend_buildvol/A7
tests/boolean/bfuse_complex/P8
tests/boolean/bopfuse_simple/ZP6
tests/boolean/end
tests/draft/angle/F9
tests/draft/angle/L4
tests/draft/end
tests/feat/end
tests/feat/featprism/C4
tests/mkface/end
tests/nproject/end
tests/offset/end
tests/pipe/end
tests/thrusection/end

index 6413e60c11cfbb2dd8c5b0dc40991bf003f04620..16eadc7148f89e0b1babb3c62aa94dcb02ac5e56 100644 (file)
@@ -15,8 +15,8 @@ if { [isdraw result] } {
       puts "The expected square is $square"
    }
    #check of change of square is < 1%
-   if { ($square != 0 && [expr abs($square - $m)/$square] > 0.01) || ($square == 0 && $m != 0) } {
-      puts "Error : The square of reult shape is $m"
+   if { ($square != 0 && [expr 1.*abs($square - $m)/$square] > 0.01) || ($square == 0 && $m != 0) } {
+      puts "Error : The square of result shape is $m"
    }
    if { $m > 0 } {
       clear
index 959cc6759913da38b9accc5ddfca4816a41f9075..205d643b2376482279f158b82e097c371b013602 100644 (file)
@@ -1,4 +1,4 @@
-puts "TODO OCC22817 Mandriva2010: Error : The square of reult shape is"
+puts "TODO OCC22817 Mandriva2010: Error : The square of result shape is"
 
 #########################
 #      bug sewing       #
index 39feb2b8c1822f29cc4a71e8729dcd76e2c1ee36..d86ebcb04425848b0da6361a4cca5cfb370a3d67 100644 (file)
@@ -1,4 +1,4 @@
-puts "TODO OCC22817 Mandriva2010: Error : The square of reult shape is"
+puts "TODO OCC22817 Mandriva2010: Error : The square of result shape is"
 
 #########################
 #      bug sewing       #
index a8f130efb18285bd3cb45355046d1fc33930a023..10c15c363b389e2cf946ab94e69a6a7497edc0bc 100644 (file)
@@ -1,6 +1,6 @@
 ## cts21139
 puts "TODO #22911 ALL: Faulty shapes in variables faulty_1 to faulty_"
-
+puts "TODO OCC22911 ALL: Error : The square of result shape is"
 restore [locate_data_file shape.brep] a
 restore [locate_data_file tool_1.brep] b
 
index 691679600bd901d6505058efa56795a56513ce9f..603c5ac511ad0e6245b6173e7289f6edbb025c2c 100644 (file)
@@ -14,6 +14,16 @@ if {[string compare $os "Debian50-64"] != 0 && [string compare $os "Debian60-64"
   puts "TODO ${inst}#22911 ${os}: Faulty shapes in variables faulty_1 to faulty_"
 }
 
+if {  [string compare $os "CentOS55-64"] == 0
+  ||  [string compare $os "Debian40"] == 0 
+  ||  [string compare $os "Debian40-64"] == 0
+  ||  [string compare $os "Mandriva2008"] == 0
+  ||  [string compare $os "Mandriva2008-64"] == 0
+  ||  [string compare $os "SL51-64"] == 0
+} {
+  puts "TODO OCC22911 $os: Error : The square of result shape is"
+}
+
 ptorus a0 100 20
 tcopy a0 a1
 tcopy a0 a2
index 225d07d6cfffa24c7520e77805374e1716cb1cfa..0ff1bc857a7f1900aafc618ea15dd79095b4376c 100755 (executable)
@@ -28,7 +28,7 @@ if { [isdraw result] } {
         puts "The expected $prop is $mass"
       }
       #check of change of square is < 1%
-      if { ($mass != 0 && [expr abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
+      if { ($mass != 0 && [expr 1.*abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
         puts "Error : The $prop of result shape is $m"
       }
       
index c228188269b9cffe892aa6d32e302b9978eb2f6c..a5e2b39c05028e266b82461a04a99fe0fcb8e8f7 100644 (file)
@@ -1,6 +1,6 @@
 #E3----------------------------------------------
 puts "TODO OCC22803 All:Faulty shapes in variables faulty_1 to faulty_2"
-puts "TODO OCC22803 All:Error : The square of reult shape is"
+puts "TODO OCC22803 All:Error : The square of result shape is"
 
 ptorus pt 25 24 90
 plane p 20 20 10 0 0 1
index 515a3a50741f306389f1435fc60b7d9ef8b210eb..c44119771a5897b7d4ebbba6b12c3fe165f3c347 100644 (file)
@@ -2,6 +2,7 @@
 # Date : 23 Nov 98
 
 puts "TODO OCC22803 All:Faulty shapes in variables faulty_1 to faulty_2"
+puts "TODO ?OCC22803 ALL: Error : The square of result shape is"
 
 restore [locate_data_file cts20194_base.brep] base
 
index 37b8817bdac96f5577f96f1569bb014a610c40aa..2289e936af5342b3a4b712d3bcee70c562eed074 100755 (executable)
@@ -12,8 +12,8 @@ if { [isdraw result] } {
       puts "The expected square is $square"
    }
    #check of change of square is < 1%
-   if { ($square != 0 && [expr abs($square - $m)/$square] > 0.01) || ($square == 0 && $m != 0) } {
-      puts "Error : The square of reult shape is $m"
+   if { ($square != 0 && [expr 1.*abs($square - $m)/$square] > 0.01) || ($square == 0 && $m != 0) } {
+      puts "Error : The square of result shape is $m"
    }
    if { [string compare $ch "This shape seems to be valid"] == 0 } {
       #check if tolerance is less 1.
index 56f360740a75acc8f072bbd698b6e4f69e8a1745..683fcadaa564e8d1ab6aef77f9d13a6aea73c88e 100755 (executable)
@@ -16,8 +16,8 @@ if { [isdraw result] } {
       puts "The expected square is $square"
    }
    #check of change of square is < 1%
-   if { ($square != 0 && [expr abs($square - $m)/$square] > 0.01) || ($square == 0 && $m != 0) } {
-      puts "Error : The square of reult shape is $m"
+   if { ($square != 0 && [expr 1.*abs($square - $m)/$square] > 0.01) || ($square == 0 && $m != 0) } {
+      puts "Error : The square of result shape is $m"
    }
    if { $m > 0 } {
       clear
index 999edc18d500422712c2e7354f6358aa9b404992..0b500a78cef87dec3ea9fc965ac3938aff1bea3b 100644 (file)
@@ -6,7 +6,7 @@ nexplode cyl F
 puts "*"
 #puts "TODO OCC22810 All:Faulty .*"
 puts "TODO OCC22810 ALL:Faulty shapes in variables faulty_1 to faulty_3"
-puts "TODO OCC22810 ALL:Error : The square of reult shape is"
+puts "TODO OCC22810 ALL:Error : The square of result shape is"
 ttranslate cont 0 0 -100
 
 #
index 0406ba0e6ccec7b802826e6c58b848b711f3036d..1b9c6637aae3207c4e2c18848ee02df2b74fe959 100755 (executable)
@@ -11,7 +11,7 @@ if { [isdraw result] } {
    regexp { *VERTEX +: +MAX=([-0-9.+eE]+)} $tolerance full maxv 
 
    if { [info exists MaxFTol ] } {
-      if { $MaxFTol != 0 && $maxf > $MaxFTol && [expr abs($MaxFTol - $maxf)/$MaxFTol] > 0.01 } {
+      if { $MaxFTol != 0 && $maxf > $MaxFTol && [expr 1.*abs($MaxFTol - $maxf)/$MaxFTol] > 0.01 } {
          puts "Error : Result shape is WRONG. MAX tolerance of FACE should be equal $MaxFTol instead of $maxf"
       } elseif { $MaxFTol == 0 && $maxf != 0 } {
          puts "Error : Result shape is WRONG."
@@ -21,7 +21,7 @@ if { [isdraw result] } {
    } 
 
    if { [info exists MaxETol ] } {
-      if { $MaxETol != 0 && $maxe > $MaxETol && [expr abs($MaxETol - $maxe)/$MaxETol] > 0.01 } {
+      if { $MaxETol != 0 && $maxe > $MaxETol && [expr 1.*abs($MaxETol - $maxe)/$MaxETol] > 0.01 } {
          puts "Error : Result shape is WRONG. MAX tolerance of EDGE should be equal $MaxETol instead of $maxe"
       } elseif { $MaxETol == 0 && $maxe != 0 } {
          puts "Error : Result shape is WRONG."
@@ -31,7 +31,7 @@ if { [isdraw result] } {
    } 
 
    if { [info exists MaxVTol ] } {
-      if { $MaxVTol != 0 && $maxv > $MaxVTol && [expr abs($MaxVTol - $maxv)/$MaxVTol] > 0.01 } {
+      if { $MaxVTol != 0 && $maxv > $MaxVTol && [expr 1.*abs($MaxVTol - $maxv)/$MaxVTol] > 0.01 } {
          puts "Error : Result shape is WRONG. MAX tolerance of VERTEX should be equal $MaxVTol instead of $maxv"
       } elseif { $MaxVTol == 0 && $maxv != 0 } {
          puts "Error : Result shape is WRONG."
index d679d0a8e5078ffa7d852aa7c53364bca5f921e7..092dc38a2f7edd6ee1af55eb8b01af0cc90ea2bc 100755 (executable)
@@ -16,7 +16,7 @@ if { [isdraw result] } {
         puts "The expected $prop is $mass"
       }
       #check of change of length is < 1%
-      if { ($mass != 0 && [expr abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
+      if { ($mass != 0 && [expr 1.*abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
         puts "Error : The $prop of result shape is $m"
       }
    } else {
index e954c548fa647917e819814fd4030c53a10954aa..476f2f18be9fe23a6b80b7d4cd9edae6f2e6448a 100644 (file)
@@ -64,7 +64,7 @@ if { [isdraw result] && $mist == 0} {
        if { [string compare $length "empty"] != 0 } {
            puts "The expected length is $length"
            #check of change of length is < 1%
-           if { ($length != 0 && [expr abs($length - $m)/$length] > 0.01) || ($length == 0 && $m != 0) } {
+           if { ($length != 0 && [expr 1.*abs($length - $m)/$length] > 0.01) || ($length == 0 && $m != 0) } {
                puts "Error : The length of result shape is $m"
            }
        } else {
@@ -128,7 +128,7 @@ if { [isdraw result] && $mist == 0} {
            puts "The expected volume is $volume"
        }
        #check of change of volume is < 1%
-       if { ($volume > 0 && [expr abs($volume - $m)/$volume] > 0.01) || ($volume == 0 && $m != 0 && $sm != $m) } {
+       if { ($volume > 0 && [expr 1.*abs($volume - $m)/$volume] > 0.01) || ($volume == 0 && $m != 0 && $sm != $m) } {
            puts "Error : The volume of result shape is $m"
        }
     }
index 93e650b891245d808668580b40cad76d44fe2081..6695c566ae077b1e3d9ac360ceba5bd0ba724073 100644 (file)
@@ -11,7 +11,7 @@ if { [isdraw result] } {
       puts "The expected square is $square"
    }
    #check of change of square is < 1%
-   if { ($square != 0 && [expr abs($square - $m)/$square] > 0.01) || ($square == 0 && $m != 0) } {
+   if { ($square != 0 && [expr 1.*abs($square - $m)/$square] > 0.01) || ($square == 0 && $m != 0) } {
       puts "Error : The square of result shape is $m"
    }
    if { $m > 0 } {
index b2369025f5c4f4d730de1c9ff1d871dfc2399639..143e18c50c369c93a969e0279afefb4317ee5e78 100755 (executable)
@@ -15,7 +15,7 @@ if { [isdraw result] } {
         puts "The expected $prop is $mass"
       }
       #check of change of square is < 1%
-      if { ($mass != 0 && [expr abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
+      if { ($mass != 0 && [expr 1.*abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
         puts "Error : The $prop of result shape is $m"
       }
    } else {