Add conversion to bool compile test

Re: #275
This commit is contained in:
Jason Turner
2016-10-06 14:52:34 -06:00
parent 8b7fe33bf1
commit 58faea1cf2

View File

@@ -971,3 +971,13 @@ TEST_CASE("Mismatched numeric types only convert necessary params")
}
TEST_CASE("type_conversion to bool")
{
auto module = std::make_shared<chaiscript::Module>();
struct T {
operator bool() const { return true; }
};
module->add(chaiscript::type_conversion<T, bool>());
}