HomePhabricator

Improve unit test code not to compare with explanatory messages for each…
0205abd83d8fUnpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

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.)

Details

Provenance
Kangmo <kangmo@nanolat.com>Authored on Dec 16 2013, 00:26
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGbccd5324ab5b: Fix unit test error on OSX 10.9 using Apple LLVM v5.0.
Branches
Unknown
Tags
Unknown

Event Timeline