1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2017 - Samuel GOUGEON
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- CLI SHELL MODE -->
9 // <-- NO CHECK REF -->
11 // <-- Non-regression test for bug 8297 -->
13 // <-- Bugzilla URL -->
14 // http://bugzilla.scilab.org/8297
16 // <-- Short Description -->
17 // After M = rand(m,m);
18 // cat(3, M, M) spent time was exponential vs m (~12 days for m = 500)
20 cat(1,1,1); // To load the function
25 assert_checkequal(r(:,:,2), m);
27 path = "SCI/modules/elementary_functions/tests/nonreg_tests/bug_8297_cat_old.sci";
32 assert_checktrue(told/tnew > 200);