1
0
mirror of https://github.com/meekrosoft/fff synced 2026-01-27 18:24:28 +01:00

Implement minimal support for varargs

This commit is contained in:
Micha Hoiting
2012-11-09 01:33:10 +01:00
parent cacd5f5459
commit ef62856fc3
7 changed files with 895 additions and 25 deletions

View File

@@ -229,3 +229,13 @@ TEST_F(FFFTestSuite, when_value_custom_fake_called_THEN_it_returns_custom_return
long retval = longfunc0();
ASSERT_EQ(MEANING_OF_LIFE, retval);
}
#ifndef __cplusplus
TEST_F(FFFTestSuite, use_vararg_fake_with_different_number_of_arguments)
{
voidfunc3var("0 parameters", 0);
voidfunc3var("1 parameter", 1, 10);
voidfunc3var("2 parameters", 2, 10, 20);
voidfunc3var("3 parameters", 3, 10, 20, 30);
}
#endif /* __cplusplus */