comparison libinterp/corefcn/rand.cc @ 17812:fffd0c0ca2dc

maint: A few Octave coding convention tweaks * libinterp/corefcn/rand.cc: Use space before parentheses in %!test function call. * liboctave/array/CSparse.cc: Change "found [...]" to "found[...]". * liboctave/array/dSparse.cc: Change "found [...]" to "found[...]". Use space before parentheses in %!test function call.
author Rik <rik@octave.org>
date Wed, 30 Oct 2013 21:55:14 -0700
parents 175b392e91fe
children 5d14a08e7533
comparison
equal deleted inserted replaced
17811:ef4fc092c86b 17812:fffd0c0ca2dc
1243 /* 1243 /*
1244 %!assert (sort (randperm (20)), 1:20) 1244 %!assert (sort (randperm (20)), 1:20)
1245 %!assert (length (randperm (20,10)), 10) 1245 %!assert (length (randperm (20,10)), 10)
1246 1246
1247 ## Test biggish N (bug #39378) 1247 ## Test biggish N (bug #39378)
1248 %!assert (length (randperm(30000^2, 100000)), 100000); 1248 %!assert (length (randperm (30000^2, 100000)), 100000)
1249 1249
1250 %!test 1250 %!test
1251 %! rand ("seed", 0); 1251 %! rand ("seed", 0);
1252 %! for i = 1:100 1252 %! for i = 1:100
1253 %! p = randperm (305, 30); 1253 %! p = randperm (305, 30);