Changeset 3bacee1 in mainline for uspace/lib/pcut/tests/simple.c
- Timestamp:
- 2018-04-12T16:27:17Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcut/tests/simple.c
r76d0981d r3bacee1 32 32 PCUT_INIT; 33 33 34 PCUT_TEST(zero_exponent) { 34 PCUT_TEST(zero_exponent) 35 { 35 36 PCUT_ASSERT_INT_EQUALS(1, intpow(2, 0)); 36 37 } 37 38 38 PCUT_TEST(one_exponent) { 39 PCUT_TEST(one_exponent) 40 { 39 41 PCUT_ASSERT_INT_EQUALS(2, intpow(2, 1)); 40 42 PCUT_ASSERT_INT_EQUALS(39, intpow(39, 1)); 41 43 } 42 44 43 PCUT_TEST(same_strings) { 45 PCUT_TEST(same_strings) 46 { 44 47 const char *p = "xyz"; 45 48 PCUT_ASSERT_STR_EQUALS("xyz", p);
Note:
See TracChangeset
for help on using the changeset viewer.