Open shitpoet opened 1 year ago
Bizarre.
I don't remember now, but it was either master
or the last tag 1.5.0
.
Anyway, I cloned the master
branch again (into a new separate folder) and tried compilation and testing again, with that "fixing" of missing std::clamp
in search.cpp
and uci.cpp
, and... result is the same:
/home/ors/tmp/admete/test/search.cpp:52: Failure
Expected equality of these values:
Search::search(board, depth, line)
Which is: 171
score
Which is: 32761
/home/ors/tmp/admete/test/search.cpp:52: Failure
Expected equality of these values:
Search::search(board, depth, line)
Which is: 181
score
Which is: 32761
/home/ors/tmp/admete/test/search.cpp:52: Failure
Expected equality of these values:
Search::search(board, depth, line)
Which is: 1358
score
Which is: 32761
[ FAILED ] Search.MateInThree (515 ms)
/home/ors/tmp/admete/test/search.cpp:70: Failure
Expected equality of these values:
Search::search(board, depth, line)
Which is: -327
score
Which is: 32759
[ FAILED ] Search.MateInFour (131 ms)
[----------] Global test environment tear-down
[==========] 40 tests from 9 test suites ran. (5274 ms total)
[ PASSED ] 38 tests.
[ FAILED ] 2 tests, listed below:
[ FAILED ] Search.MateInThree
[ FAILED ] Search.MateInFour
2 FAILED TESTS
Unfortunately, I don't know how to compile C++ code with rustc, and at least a very quick google search didn't answer for me that question. But if you know how can I try to compile the project using rustc
, I would try.
Some tests fail when compiling in Debian GNU/Linux 12 (bookworm) 64-bit amd64 architecture.
Rust version:
CPU info:
Note: compilation was failing because my distribution seems to not have
std::clamp
, so I added this code right into two files whereclamp
was used:But it should not be a problem as far as I understand.