fix core tests
[scilab.git] / scilab / modules / core / tests / unit_tests / colon.tst
index 5af67ed..c7177a5 100644 (file)
@@ -4,33 +4,33 @@
 //
 //  This file is distributed under the same license as the Scilab package.
 // =============================================================================
-// <-- JVM NOT MANDATORY -->
-//
+// <-- CLI SHELL MODE -->
+// <-- NO CHECK REF -->
 
 // With start, stop integers
-computed=1:4
-expected = [1 2 3 4]
-if norm(expected-computed)>100*%eps then pause,end
+computed = 1:4;
+expected = [1 2 3 4];
+assert_checkequal(computed, expected);
 // With start, step, stop integers
 computed=1:2:5
 expected = [1 3 5]
-if norm(expected-computed)>100*%eps then pause,end
+assert_checkequal(computed, expected);
 // With start before stop
 computed=size(1:0)
 expected = [0 0]
-if expected<>computed then pause,end
+assert_checkequal(computed, expected);
 // With start before stop, whatever the step
 computed=size(1:1:0)
 expected = [0 0]
-if expected<>computed then pause,end
+assert_checkequal(computed, expected);
 // With start, step, stop reals
 a=(1-0.9)*50
 computed=(1:a)
 expected = [1 2 3 4 5]
-if norm(expected-computed)>100*%eps then pause,end
+assert_checkalmostequal(computed, expected);
 // With start, step, stop reals
 step=(1-0.9)*20
 computed=1:step:10
 expected = [1 3 5 7 9]
-if norm(expected-computed)>100*%eps then pause,end
+assert_checkalmostequal(computed, expected);