summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug1448.sci
blob: 6ee7896c5869c6fc65749f353688fa313de9aec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// <-- Non-regression test for bug 1448 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=1448
//
// <-- Short Description -->
//    Bug detected in 3.1.1 under Windows XP.
//    Bug relative to function rotate
//
//    A positive angle corresponds to a clockwise rotation, then in the 
//    negative mathematical way.
//
//    Jacques-Deric

// Copyright INRIA
// Scilab Project - Jean-Baptiste Silvy
// Copyright INRIA 2006
// Date : October 20 2006

point1 = [1 ; 0];
point2 = rotate (point1, %pi/2),	


if ( norm( point2 - [0;1] ) < 10e-10 ) then
  affich_result(%T,1448);
else
  affich_result(%F,1448);
end