Ignore:
File:
1 edited

Legend:

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

    r48974d6 r1d6dd2a  
    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.