1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2015 - Scilab Enterprises - Adeline CARNIS
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
7 // <-- CLI SHELL MODE -->
8 // <-- Non-regression test for bug 13709 -->
10 // <-- Bugzilla URL -->
11 // http://bugzilla.scilab.org/show_bug.cgi?id=13709
13 // <-- Short Description -->
14 // The position of the first of each distinct element was sometimes wrong.
15 // =============================================================================
24 [Uind, kindex] = unique(ind, "r");
31 assert_checkequal(Uind, expUind);
32 assert_checkequal(kindex, expk);