[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fntest.m results in test directry on cygwin octave : check rand.cc
From: |
Tatsuro MATSUOKA |
Subject: |
fntest.m results in test directry on cygwin octave : check rand.cc |
Date: |
Thu, 27 Dec 2007 05:50:23 +0900 (JST) |
Hello
I have not carried out make check on the cygwin because run_octave did not work.
Today I have found the test directory in the extracted source file directories
and carried out the
'fntests'.
********************************
Summary:
PASS 2617
FAIL 2
There was 1 expected failure (see fntests.log for details).
Expected failures are known bugs. Please help improve
Octave by contributing fixes for them.
1514 (of 1667) files have no tests. Please help improve Octave by
contributing tests for these files (see the list in the file fntests.log).
error: can't perform indexing operations for <unknown type> type
*******************
I checked the fntests.log.
****************
>>>>> processing /usr/tatsu/cygwin/octave/octave-3.0.0/src/DLD-FUNCTIONS/rand.cc
***** test
% Test fixed state
randp("seed",1);
assert(randp(1e9,1,6),[1000006208 1000012224 999981120 999963520 999963072
999981440])
!!!!! test failed
error: assert (randp (1e9, 1, 6),[1000006208, 1000012224, 999981120, 999963520,
999963072, 999981440])
expected
1.0000e+09 1.0000e+09 9.9998e+08 9.9996e+08 9.9996e+08 9.9998e+08
but got
1.0000e+09 1.0000e+09 9.9998e+08 9.9996e+08 9.9996e+08 9.9998e+08
values do not match
shared variables {
__random_statistical_tests__ = 0
}
****************
So I have carried out.
octave:1> randp("seed",1);
octave:2> format long
octave:5> assert(randp(1e9,1,6),[1000006208 1000012224 999981120 999963520
999963072 999981440])
error: assert (randp (1e9, 1, 6),[1000006208, 1000012224, 999981120, 999963520,
999963072, 999981440]) expected
1000006208 1000012224 999981120 999963520 999963072 999981440
but got
1000006225 1000012251 999981100 999963538 999963053 999981432
values do not match
I think this difference is trivial and perhaps comes from the implementation of
rand() function on
cygwin gcc is different from the gcc on other platforms.
Is this right? Can I ignore the difference?
Regards
Tatsuro
--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/
- fntest.m results in test directry on cygwin octave : check rand.cc,
Tatsuro MATSUOKA <=