]> mj.ucw.cz Git - libucw.git/commitdiff
xtypes&tableprinter: update of tests
authorRobert Kessl <kesslr@centrum.cz>
Wed, 23 Jul 2014 14:16:30 +0000 (16:16 +0200)
committerRobert Kessl <kesslr@centrum.cz>
Wed, 23 Jul 2014 14:16:30 +0000 (16:16 +0200)
ucw/xtypes-test.c
ucw/xtypes-test.t

index 7ddde2d82eb81012c0c1e24ca2b66b775b4f7a8c..dc898cc57852aa7fac9e2577af2d98193632be98 100644 (file)
@@ -63,6 +63,9 @@ static void test_size_parse_errors(struct fastbuf *out)
   static const char *size_strs[] = {
     "1X",
     "KB",
+    "X1KB",
+    "1XKB",
+    "1KBX",
     "\0",
     NULL
   };
index f62e19a62d2d2ae05d4f0b29b0d59b89db884ab0..3480a3ada78a1b55039c02836b20058301ec0d8f 100644 (file)
@@ -5,8 +5,11 @@ Out <<EOF
 4MB 4MB
 4GB 4GB
 4TB 4TB
-xt_size.parse error: 'Invalid format of size: '1X'.'.
+xt_size.parse error: 'Invalid units: 'X'.'.
 xt_size.parse error: 'Invalid value of size: 'KB'.'.
+xt_size.parse error: 'Invalid value of size: 'X1KB'.'.
+xt_size.parse error: 'Invalid units: 'XKB'.'.
+xt_size.parse error: 'Invalid units: 'KBX'.'.
 xt_size.parse error: 'Invalid value of size: ''.'.
 0 false
 1 true