1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2008 - INRIA - Michael Baudin
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
7 // <-- CLI SHELL MODE -->
8 // <-- NO CHECK REF -->
10 // With start, stop integers
13 assert_checkequal(computed, expected);
14 // With start, step, stop integers
17 assert_checkequal(computed, expected);
18 // With start before stop
21 assert_checkequal(computed, expected);
22 // With start before stop, whatever the step
25 assert_checkequal(computed, expected);
26 // With start, step, stop reals
29 expected = [1 2 3 4 5]
30 assert_checkalmostequal(computed, expected);
31 // With start, step, stop reals
34 expected = [1 3 5 7 9]
35 assert_checkalmostequal(computed, expected);