Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr


        

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer

Running main() from gtest_main.cc
Note: Google Test filter = Pool.ToString
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from Pool
[ RUN      ] Pool.ToString
/out/build/compile/gtest/test_pool.cpp:94: Failure
      Expected: uniformOutput(pool.toString())
      Which is: { "SB SB SB SB SE SE SE SE TB TB TB TB TE TE TE TE", "CH CO QH QO CH CO QH QO CH CO QH QO CH CO QH QO" }
To be equal to: uniformOutput(pool2str(pool))
      Which is: { "Available:", "SB SB SB SB SE SE SE SE TB TB TB TB TE TE TE TE", "CH CO QH QO CH CO QH QO CH CO QH QO CH CO QH QO" }
/out/build/compile/gtest/test_pool.cpp:100: Failure
      Expected: uniformOutput(pool.toString())
      Which is: { "SB SB SB SB SE SE SE SE TB TB TB TB TE TE TE TE", "CH CO QH QO CH CO QH QO CH CO QH QO CH CO QH QO" }
To be equal to: uniformOutput(pool2str(pool))
      Which is: { "Available:", "SB SB SB SB SE SE SE SE TB TB TB TB TE TE TE TE", "CH CO QH QO CH CO QH QO CH CO QH QO CH CO QH QO" }

JOJ Answer

Running main() from gtest_main.cc
Note: Google Test filter = Pool.ToString
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from Pool
[ RUN      ] Pool.ToString
[       OK ] Pool.ToString
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran.
[  PASSED  ] 1 test.