summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJosh Blum2013-07-04 14:56:14 -0700
committerJosh Blum2013-07-04 14:56:14 -0700
commitfbec0c405a1fec4e8ee82d065fdc657cdd333f52 (patch)
tree97b2399310533305fad28828459bce0ae7466600 /tests
parent79acbc825e5281dbdc9c0d398ff99284b7be386d (diff)
downloadsandhi-fbec0c405a1fec4e8ee82d065fdc657cdd333f52.tar.gz
sandhi-fbec0c405a1fec4e8ee82d065fdc657cdd333f52.tar.bz2
sandhi-fbec0c405a1fec4e8ee82d065fdc657cdd333f52.zip
gras: update properties test for PMC convert support
Diffstat (limited to 'tests')
-rw-r--r--tests/block_props_test.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/block_props_test.cpp b/tests/block_props_test.cpp
index ddbd915..f53a1c3 100644
--- a/tests/block_props_test.cpp
+++ b/tests/block_props_test.cpp
@@ -53,6 +53,9 @@ BOOST_AUTO_TEST_CASE(test_property_set_get_with_reference)
size_t my_foo; my_block.get("foo", my_foo);
BOOST_CHECK_EQUAL(my_foo, size_t(42));
+
+ double my_foo_d; my_block.get("foo", my_foo_d);
+ BOOST_CHECK_EQUAL(my_foo_d, double(42));
}
BOOST_AUTO_TEST_CASE(test_property_errors)
@@ -63,5 +66,5 @@ BOOST_AUTO_TEST_CASE(test_property_errors)
BOOST_CHECK_THROW(my_block.get<size_t>("bar"), std::exception);
//wrong type for property
- BOOST_CHECK_THROW(my_block.set("foo", double(42)), std::exception);
+ BOOST_CHECK_THROW(my_block.set("foo", "a string"), std::exception);
}