Added tests for new generator_util function ptr_or_str?

This commit is contained in:
Dennis Lambe Jr
2012-12-20 15:14:43 -05:00
parent 861cf07194
commit b2bdc5f476
+6
View File
@@ -46,6 +46,12 @@ class CMockGeneratorUtilsTest < Test::Unit::TestCase
assert_equal(true, @cmock_generator_utils_complex.arrays)
assert_equal(true, @cmock_generator_utils_complex.cexception)
end
should "detect pointers and strings" do
assert_equal(false, @cmock_generator_utils_simple.ptr_or_str?('int'))
assert_equal(true, @cmock_generator_utils_simple.ptr_or_str?('int*'))
assert_equal(true, @cmock_generator_utils_simple.ptr_or_str?('char*'))
end
should "add code for a base expectation with no plugins" do
expected =