Changeset 48974d6 in mainline for uspace/lib/c/test/sprintf.c


Ignore:
Timestamp:
2018-03-26T12:46:44Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9ce35f0
Parents:
5a01f7d
git-author:
Jiri Svoboda <jiri@…> (2018-03-25 18:45:28)
git-committer:
Jiri Svoboda <jiri@…> (2018-03-26 12:46:44)
Message:

Need declarations to be terminated by semicolon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/test/sprintf.c

    r5a01f7d r48974d6  
    5454
    5555
    56 SPRINTF_TEST(no_formatting, "This is a test.", "This is a test.")
     56SPRINTF_TEST(no_formatting, "This is a test.", "This is a test.");
    5757
    5858
    5959
    60 SPRINTF_TEST(string_plain, "some text", "%s", "some text")
     60SPRINTF_TEST(string_plain, "some text", "%s", "some text");
    6161
    62 SPRINTF_TEST(string_dynamic_width, "  tex", "%*.*s", 5, 3, "text")
     62SPRINTF_TEST(string_dynamic_width, "  tex", "%*.*s", 5, 3, "text");
    6363
    64 SPRINTF_TEST(string_dynamic_width_align_left, "text   ", "%-*.*s", 7, 7, "text")
     64SPRINTF_TEST(string_dynamic_width_align_left, "text   ", "%-*.*s", 7, 7, "text");
    6565
    66 SPRINTF_TEST(string_pad, "    text", "%8.10s", "text")
     66SPRINTF_TEST(string_pad, "    text", "%8.10s", "text");
    6767
    68 SPRINTF_TEST(string_pad_but_cut, "  very lon", "%10.8s", "very long text")
     68SPRINTF_TEST(string_pad_but_cut, "  very lon", "%10.8s", "very long text");
    6969
    7070
    7171
    72 SPRINTF_TEST(char_basic, "[a]", "[%c]", 'a')
     72SPRINTF_TEST(char_basic, "[a]", "[%c]", 'a');
    7373
    7474
     
    7676SPRINTF_TEST(int_various_padding, "[1] [ 02] [03 ] [004] [005]",
    7777    "[%d] [%3.2d] [%-3.2d] [%2.3d] [%-2.3d]",
    78     1, 2, 3, 4, 5)
     78    1, 2, 3, 4, 5);
    7979
    8080SPRINTF_TEST(int_negative_various_padding, "[-1] [-02] [-03] [-004] [-005]",
    8181    "[%d] [%3.2d] [%-3.2d] [%2.3d] [%-2.3d]",
    82     -1, -2, -3, -4, -5)
     82    -1, -2, -3, -4, -5);
    8383
    8484SPRINTF_TEST(long_negative_various_padding, "[-1] [-02] [-03] [-004] [-005]",
    8585    "[%lld] [%3.2lld] [%-3.2lld] [%2.3lld] [%-2.3lld]",
    8686    (long long) -1, (long long) -2, (long long) -3, (long long) -4,
    87     (long long) -5)
     87    (long long) -5);
    8888
    8989SPRINTF_TEST(int_as_hex, "[0x11] [0x012] [0x013] [0x00014] [0x00015]",
    9090    "[%#x] [%#5.3x] [%#-5.3x] [%#3.5x] [%#-3.5x]",
    91     17, 18, 19, 20, 21)
     91    17, 18, 19, 20, 21);
    9292
    9393
Note: See TracChangeset for help on using the changeset viewer.