Changeset 3bacee1 in mainline for uspace/lib/pcut/tests/asserts.c


Ignore:
Timestamp:
2018-04-12T16:27:17Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
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)
Message:

Make ccheck-fix again and commit more good files.

File:
1 edited

Legend:

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

    r76d0981d r3bacee1  
    3232PCUT_INIT;
    3333
    34 PCUT_TEST(int_equals) {
     34PCUT_TEST(int_equals)
     35{
    3536        PCUT_ASSERT_INT_EQUALS(1, 1);
    3637        PCUT_ASSERT_INT_EQUALS(1, 0);
    3738}
    3839
    39 PCUT_TEST(double_equals) {
     40PCUT_TEST(double_equals)
     41{
    4042        PCUT_ASSERT_DOUBLE_EQUALS(1., 1., 0.001);
    4143        PCUT_ASSERT_DOUBLE_EQUALS(1., 0.5, 0.4);
    4244}
    4345
    44 PCUT_TEST(str_equals) {
     46PCUT_TEST(str_equals)
     47{
    4548        PCUT_ASSERT_STR_EQUALS("xyz", "xyz");
    4649        PCUT_ASSERT_STR_EQUALS("abc", "xyz");
    4750}
    4851
    49 PCUT_TEST(str_equals_or_null_base) {
     52PCUT_TEST(str_equals_or_null_base)
     53{
    5054        PCUT_ASSERT_STR_EQUALS_OR_NULL("xyz", "xyz");
    5155}
    5256
    53 PCUT_TEST(str_equals_or_null_different) {
     57PCUT_TEST(str_equals_or_null_different)
     58{
    5459        PCUT_ASSERT_STR_EQUALS_OR_NULL("abc", "xyz");
    5560}
    5661
    57 PCUT_TEST(str_equals_or_null_one_null) {
     62PCUT_TEST(str_equals_or_null_one_null)
     63{
    5864        PCUT_ASSERT_STR_EQUALS_OR_NULL(NULL, "xyz");
    5965}
    6066
    61 PCUT_TEST(str_equals_or_null_both) {
     67PCUT_TEST(str_equals_or_null_both)
     68{
    6269        PCUT_ASSERT_STR_EQUALS_OR_NULL(NULL, NULL);
    6370}
    6471
    65 PCUT_TEST(assert_true) {
     72PCUT_TEST(assert_true)
     73{
    6674        PCUT_ASSERT_TRUE(42);
    6775        PCUT_ASSERT_TRUE(0);
    6876}
    6977
    70 PCUT_TEST(assert_false) {
     78PCUT_TEST(assert_false)
     79{
    7180        PCUT_ASSERT_FALSE(0);
    7281        PCUT_ASSERT_FALSE(42);
Note: See TracChangeset for help on using the changeset viewer.