diff options
| author | hathach <[email protected]> | 2013-01-14 00:41:23 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-01-14 00:41:23 +0700 |
| commit | 3d8babcb147022a6bced9b61455b301e3ea95150 (patch) | |
| tree | d1b55e5ed49d81d6220d1b77219f047b9bcd23fb /tests/test/test_assertion.c | |
| parent | f9914751833deb1b135568b7c09271261f356a06 (diff) | |
refractor to remove duplicate code between ASSERT_HEX and ASSERT_INT
use static inline min_of and max_of instead of macro
Diffstat (limited to 'tests/test/test_assertion.c')
| -rw-r--r-- | tests/test/test_assertion.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test/test_assertion.c b/tests/test/test_assertion.c index 7f2394093..a289f2bdf 100644 --- a/tests/test/test_assertion.c +++ b/tests/test/test_assertion.c @@ -145,6 +145,25 @@ void test_assert_hex_within_greater(void) TEST_FAIL(); } +//--------------------------------------------------------------------+ +// HEX +//--------------------------------------------------------------------+ +void test_assert_bin_equal(void) +{ +// ASSERT_HEX (0xffee, 0xffee, (void) 0); +// ASSERT_HEX_EQUAL (0xffee, 0xffee, (void) 0); +// +// uint32_t x = 0xf0f0; +// uint32_t y = 0xf0f0; +// ASSERT_HEX (x++, y++, (void) 0); // test side effect +// TEST_ASSERT_EQUAL(0xf0f1, x); +// TEST_ASSERT_EQUAL(0xf0f1, y); +// +// ASSERT_HEX(0x1234, 0x4321, (void) 0); + + TEST_IGNORE(); +} + |
