Revision: 57303
          http://sourceforge.net/p/brlcad/code/57303
Author:   brlcad
Date:     2013-08-30 03:52:25 +0000 (Fri, 30 Aug 2013)
Log Message:
-----------
per sf bug report 347, add a slew of %s tests for field width/precision 
specifiers that are failing.  the code clearly looks like it should be handling 
this case, but clearly something isn't getting set right.  looks like it always 
just prints the string plain.

Modified Paths:
--------------
    brlcad/trunk/src/libbu/tests/bu_vls_vprintf.c

Modified: brlcad/trunk/src/libbu/tests/bu_vls_vprintf.c
===================================================================
--- brlcad/trunk/src/libbu/tests/bu_vls_vprintf.c       2013-08-30 02:44:38 UTC 
(rev 57302)
+++ brlcad/trunk/src/libbu/tests/bu_vls_vprintf.c       2013-08-30 03:52:25 UTC 
(rev 57303)
@@ -281,6 +281,22 @@
            return test_vls("%'d", 123000);
        case 57:
            return test_vls("%c", 'r');
+       case 58:
+           return test_vls("%20s", "right");
+       case 59:
+           return test_vls("%-20s", "left");
+       case 60:
+           return test_vls("%10.20s", "12345");
+       case 61:
+           return test_vls("%-10.20s", "12345");
+       case 62:
+           return test_vls("%10.20s", "123456789012345");
+       case 63:
+           return test_vls("%-10.20s", "123456789012345");
+       case 64:
+           return test_vls("%20.10s", "123456789012345");
+       case 65:
+           return test_vls("%-20.10s", "123456789012345");
 
        /* this test needs a relook
            return test_vls("%H", 123);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to