Files
rtorrent/test/helpers/assert.h
T
2019-08-23 23:25:24 +09:00

8 lines
249 B
C++

#ifndef HELPERS_ASSERT_H
#define HELPERS_ASSERT_H
#define ASSERT_CATCH_INPUT_ERROR(some_code) \
try { some_code; CPPUNIT_ASSERT("torrent::input_error not caught" && false); } catch (torrent::input_error& e) { }
#endif