From: vro Date: Fri, 14 Jun 2013 08:14:35 +0000 (+0400) Subject: 0023939: Incorrect circle parameter in IntAna X-Git-Tag: V6_7_0_beta~236 X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=commitdiff_plain;h=8405834525d343231cb70159a27df8b36e49bb73 0023939: Incorrect circle parameter in IntAna Adding testing case --- diff --git a/tests/bugs/moddata_3/bug23939 b/tests/bugs/moddata_3/bug23939 new file mode 100644 index 0000000000..7cc0a3bda7 --- /dev/null +++ b/tests/bugs/moddata_3/bug23939 @@ -0,0 +1,28 @@ +puts "========================" +puts " CR23939 " +puts "========================" +puts "" +################################################################## +## Incorrect circle parameter in IntAna +################################################################## + +circle c1 0 0 10 +circle c2 7 0 3 + +set info1 [2dintanalytical c1 c2] +regexp {parameter on the fist: +([-0-9.+eE]+) parameter on the second: +([-0-9.+eE]+)} ${info1} full p1_1 p1_2 +if { ${p1_1} != 0 } { + puts "Bad first parameter p1_1=${p1_1}" +} +if { ${p1_2} != 0 } { + puts "Bad second parameter p1_2=${p1_2}" +} + +set info2 [2dintanalytical c2 c1] +regexp {parameter on the fist: +([-0-9.+eE]+) parameter on the second: +([-0-9.+eE]+)} ${info2} full p2_1 p2_2 +if { ${p2_1} != 0 } { + puts "Bad first parameter p2_1=${p2_1}" +} +if { ${p2_2} != 0 } { + puts "Bad second parameter p2_2=${p2_2}" +}