Merge pull request #56 from jeking3/ci

Enhance CI, add license and readme, and fix some issues
This commit is contained in:
Marshall Clow
2022-06-23 21:14:22 -07:00
committed by GitHub
8 changed files with 364 additions and 220 deletions

View File

@ -69,6 +69,7 @@ alias unit_test_framework
[ run hex_test2.cpp unit_test_framework : : : : hex_test2 ]
[ run hex_test3.cpp unit_test_framework : : : : hex_test3 ]
[ run hex_test4.cpp unit_test_framework : : : : hex_test4 ]
[ run mclow.cpp unit_test_framework : : : : mclow ]
[ compile-fail hex_fail1.cpp ]
# Gather tests

15
test/mclow.cpp Normal file
View File

@ -0,0 +1,15 @@
#include <stdexcept>
#include <boost/exception/exception.hpp>
#include <boost/throw_exception.hpp>
struct hex_decode_error : virtual boost::exception, virtual std::exception {};
struct not_enough_input : virtual hex_decode_error {};
struct non_hex_input : virtual hex_decode_error {};
void toss() { BOOST_THROW_EXCEPTION(not_enough_input()); }
int main () {
try { toss(); }
catch ( const hex_decode_error & /*ex*/ ) {}
}