Changeset 4b54bd9 in mainline for uspace/lib/pcut/tests/simple.c
- Timestamp:
- 2018-09-12T13:23:03Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3da0ee4
- Parents:
- 275530a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcut/tests/simple.c
r275530a4 r4b54bd9 30 30 #include "tested.h" 31 31 32 PCUT_INIT ;32 PCUT_INIT 33 33 34 PCUT_TEST(zero_exponent) 35 { 34 PCUT_TEST(zero_exponent) { 36 35 PCUT_ASSERT_INT_EQUALS(1, intpow(2, 0)); 37 36 } 38 37 39 PCUT_TEST(one_exponent) 40 { 38 PCUT_TEST(one_exponent) { 41 39 PCUT_ASSERT_INT_EQUALS(2, intpow(2, 1)); 42 40 PCUT_ASSERT_INT_EQUALS(39, intpow(39, 1)); 43 41 } 44 42 45 PCUT_TEST(same_strings) 46 { 43 PCUT_TEST(same_strings) { 47 44 const char *p = "xyz"; 48 45 PCUT_ASSERT_STR_EQUALS("xyz", p); … … 50 47 } 51 48 52 PCUT_MAIN() ;49 PCUT_MAIN()
Note:
See TracChangeset
for help on using the changeset viewer.