tests/result.cc: fix assert.