1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2012 - Scilab Enterprises - Sylvestre Ledru
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- CLI SHELL MODE -->
10 // <-- Non-regression test for bug 12373 -->
12 // <-- Bugzilla URL -->
13 // http://bugzilla.scilab.org/show_bug.cgi?id=12373
15 // <-- Short Description -->
16 // pmodulo(n,m<0) returned a negative result
18 assert_checkequal(pmodulo(10,-6), 4);
19 assert_checkequal(pmodulo(-10,-6), 2);
20 assert_checkfalse(pmodulo(10,-6) == -2);
21 assert_checkfalse(pmodulo(-10,-6) == -4);