diff options
| author | Kangmo <[email protected]> | 2013-12-16 09:26:04 +0900 |
|---|---|---|
| committer | Kangmo <[email protected]> | 2013-12-16 09:26:04 +0900 |
| commit | 0205abd83d8f8dcbe453440a3fa4e494b71704e8 (patch) | |
| tree | f19aa304bbfc3f3b6162e8c5967cd3515db7483b /src/init.cpp | |
| parent | Fix unit test error on OSX 10.9 using Apple LLVM v5.0. (diff) | |
| download | discoin-0205abd83d8f8dcbe453440a3fa4e494b71704e8.tar.xz discoin-0205abd83d8f8dcbe453440a3fa4e494b71704e8.zip | |
Improve unit test code not to compare with explanatory messages for each platform.
Instead, use have an exception object to check if the string returned by what() on the raised exception matches the string returned by what() on the expected exception instance.
This way, we do not need to list all different possible explanatory strings for different platforms in the test code, and make it simple. (The idea is by Cory Fields.)
Diffstat (limited to 'src/init.cpp')
0 files changed, 0 insertions, 0 deletions