Changeset 134ac5d in mainline for uspace/lib/pcut/tests/asserts.c


Ignore:
Timestamp:
2014-06-06T07:54:24Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8db09e4
Parents:
eeb23f2d
Message:

Update PCUT to newest version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcut/tests/asserts.c

    reeb23f2d r134ac5d  
    2727 */
    2828
    29 #include <pcut/test.h>
     29#include <pcut/pcut.h>
    3030#include "tested.h"
    3131
     
    4747}
    4848
     49PCUT_TEST(str_equals_or_null_base) {
     50        PCUT_ASSERT_STR_EQUALS_OR_NULL("xyz", "xyz");
     51}
     52
     53PCUT_TEST(str_equals_or_null_different) {
     54        PCUT_ASSERT_STR_EQUALS_OR_NULL("abc", "xyz");
     55}
     56
     57PCUT_TEST(str_equals_or_null_one_null) {
     58        PCUT_ASSERT_STR_EQUALS_OR_NULL(NULL, "xyz");
     59}
     60
     61PCUT_TEST(str_equals_or_null_both) {
     62        PCUT_ASSERT_STR_EQUALS_OR_NULL(NULL, NULL);
     63}
     64
     65PCUT_TEST(assert_true) {
     66        PCUT_ASSERT_TRUE(42);
     67        PCUT_ASSERT_TRUE(0);
     68}
     69
     70PCUT_TEST(assert_false) {
     71        PCUT_ASSERT_FALSE(0);
     72        PCUT_ASSERT_FALSE(42);
     73}
     74
    4975PCUT_MAIN()
Note: See TracChangeset for help on using the changeset viewer.