mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-09-27 04:27:26 +00:00
Added tests for new generator_util function ptr_or_str?
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user