Fossil SCM
Merge updates from trunk.
Commit
fc84a01a8b36bf9d6fd55ff9968de2dd0d1ea409
Parent
334f518c5f58b0d…
4 files changed
+2
+2
+40
+40
+2
| --- src/comformat.c | ||
| +++ src/comformat.c | ||
| @@ -124,16 +124,18 @@ | ||
| 124 | 124 | ** Test comment formatting and printing. Use for testing only. |
| 125 | 125 | ** |
| 126 | 126 | ** Options: |
| 127 | 127 | ** --decode Decode the text using the same method used when |
| 128 | 128 | ** handling the value of a C-card from a manifest. |
| 129 | +** --wordbreak This does nothing and is ignored. | |
| 129 | 130 | */ |
| 130 | 131 | void test_comment_format(void){ |
| 131 | 132 | const char *zPrefix; |
| 132 | 133 | char *zText; |
| 133 | 134 | int indent, width; |
| 134 | 135 | int decode = find_option("decode", 0, 0)!=0; |
| 136 | + find_option("wordbreak", 0, 0); /* NOT USED */ | |
| 135 | 137 | if( g.argc!=4 && g.argc!=5 ){ |
| 136 | 138 | usage("PREFIX TEXT ?WIDTH?"); |
| 137 | 139 | } |
| 138 | 140 | zPrefix = g.argv[2]; |
| 139 | 141 | if( decode ){ |
| 140 | 142 |
| --- src/comformat.c | |
| +++ src/comformat.c | |
| @@ -124,16 +124,18 @@ | |
| 124 | ** Test comment formatting and printing. Use for testing only. |
| 125 | ** |
| 126 | ** Options: |
| 127 | ** --decode Decode the text using the same method used when |
| 128 | ** handling the value of a C-card from a manifest. |
| 129 | */ |
| 130 | void test_comment_format(void){ |
| 131 | const char *zPrefix; |
| 132 | char *zText; |
| 133 | int indent, width; |
| 134 | int decode = find_option("decode", 0, 0)!=0; |
| 135 | if( g.argc!=4 && g.argc!=5 ){ |
| 136 | usage("PREFIX TEXT ?WIDTH?"); |
| 137 | } |
| 138 | zPrefix = g.argv[2]; |
| 139 | if( decode ){ |
| 140 |
| --- src/comformat.c | |
| +++ src/comformat.c | |
| @@ -124,16 +124,18 @@ | |
| 124 | ** Test comment formatting and printing. Use for testing only. |
| 125 | ** |
| 126 | ** Options: |
| 127 | ** --decode Decode the text using the same method used when |
| 128 | ** handling the value of a C-card from a manifest. |
| 129 | ** --wordbreak This does nothing and is ignored. |
| 130 | */ |
| 131 | void test_comment_format(void){ |
| 132 | const char *zPrefix; |
| 133 | char *zText; |
| 134 | int indent, width; |
| 135 | int decode = find_option("decode", 0, 0)!=0; |
| 136 | find_option("wordbreak", 0, 0); /* NOT USED */ |
| 137 | if( g.argc!=4 && g.argc!=5 ){ |
| 138 | usage("PREFIX TEXT ?WIDTH?"); |
| 139 | } |
| 140 | zPrefix = g.argv[2]; |
| 141 | if( decode ){ |
| 142 |
+2
| --- src/comformat.c | ||
| +++ src/comformat.c | ||
| @@ -124,16 +124,18 @@ | ||
| 124 | 124 | ** Test comment formatting and printing. Use for testing only. |
| 125 | 125 | ** |
| 126 | 126 | ** Options: |
| 127 | 127 | ** --decode Decode the text using the same method used when |
| 128 | 128 | ** handling the value of a C-card from a manifest. |
| 129 | +** --wordbreak This does nothing and is ignored. | |
| 129 | 130 | */ |
| 130 | 131 | void test_comment_format(void){ |
| 131 | 132 | const char *zPrefix; |
| 132 | 133 | char *zText; |
| 133 | 134 | int indent, width; |
| 134 | 135 | int decode = find_option("decode", 0, 0)!=0; |
| 136 | + find_option("wordbreak", 0, 0); /* NOT USED */ | |
| 135 | 137 | if( g.argc!=4 && g.argc!=5 ){ |
| 136 | 138 | usage("PREFIX TEXT ?WIDTH?"); |
| 137 | 139 | } |
| 138 | 140 | zPrefix = g.argv[2]; |
| 139 | 141 | if( decode ){ |
| 140 | 142 |
| --- src/comformat.c | |
| +++ src/comformat.c | |
| @@ -124,16 +124,18 @@ | |
| 124 | ** Test comment formatting and printing. Use for testing only. |
| 125 | ** |
| 126 | ** Options: |
| 127 | ** --decode Decode the text using the same method used when |
| 128 | ** handling the value of a C-card from a manifest. |
| 129 | */ |
| 130 | void test_comment_format(void){ |
| 131 | const char *zPrefix; |
| 132 | char *zText; |
| 133 | int indent, width; |
| 134 | int decode = find_option("decode", 0, 0)!=0; |
| 135 | if( g.argc!=4 && g.argc!=5 ){ |
| 136 | usage("PREFIX TEXT ?WIDTH?"); |
| 137 | } |
| 138 | zPrefix = g.argv[2]; |
| 139 | if( decode ){ |
| 140 |
| --- src/comformat.c | |
| +++ src/comformat.c | |
| @@ -124,16 +124,18 @@ | |
| 124 | ** Test comment formatting and printing. Use for testing only. |
| 125 | ** |
| 126 | ** Options: |
| 127 | ** --decode Decode the text using the same method used when |
| 128 | ** handling the value of a C-card from a manifest. |
| 129 | ** --wordbreak This does nothing and is ignored. |
| 130 | */ |
| 131 | void test_comment_format(void){ |
| 132 | const char *zPrefix; |
| 133 | char *zText; |
| 134 | int indent, width; |
| 135 | int decode = find_option("decode", 0, 0)!=0; |
| 136 | find_option("wordbreak", 0, 0); /* NOT USED */ |
| 137 | if( g.argc!=4 && g.argc!=5 ){ |
| 138 | usage("PREFIX TEXT ?WIDTH?"); |
| 139 | } |
| 140 | zPrefix = g.argv[2]; |
| 141 | if( decode ){ |
| 142 |
+40
| --- test/comment.test | ||
| +++ test/comment.test | ||
| @@ -79,5 +79,45 @@ | ||
| 79 | 79 | |
| 80 | 80 | ############################################################################### |
| 81 | 81 | |
| 82 | 82 | fossil test-comment-format "*TEST* " "this\tis a test." 26 |
| 83 | 83 | test comment-13 {$RESULT eq "*TEST* this\tis a te\n st.\n(2 lines output)"} |
| 84 | + | |
| 85 | +############################################################################### | |
| 86 | + | |
| 87 | +fossil test-comment-format "*TEST* " "this is a test......................................................................................................................." 60 | |
| 88 | +test comment-14 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} | |
| 89 | + | |
| 90 | +############################################################################### | |
| 91 | + | |
| 92 | +fossil test-comment-format --wordbreak "*TEST* " "this is a test......................................................................................................................." 60 | |
| 93 | +test comment-15 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} | |
| 94 | + | |
| 95 | +############################################################################### | |
| 96 | + | |
| 97 | +fossil test-comment-format "*TEST* " "this is a test......................................................................................................................." 60 | |
| 98 | +test comment-16 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} | |
| 99 | + | |
| 100 | +############################################################################### | |
| 101 | + | |
| 102 | +fossil test-comment-format --wordbreak "*TEST* " "this is a test......................................................................................................................." 60 | |
| 103 | +test comment-17 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} | |
| 104 | + | |
| 105 | +############################################################################### | |
| 106 | + | |
| 107 | +fossil test-comment-format "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 | |
| 108 | +test comment-18 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} | |
| 109 | + | |
| 110 | +############################################################################### | |
| 111 | + | |
| 112 | +fossil test-comment-format --wordbreak "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 | |
| 113 | +test comment-19 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} | |
| 114 | + | |
| 115 | +############################################################################### | |
| 116 | + | |
| 117 | +fossil test-comment-format "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 | |
| 118 | +test comment-20 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} | |
| 119 | + | |
| 120 | +############################################################################### | |
| 121 | + | |
| 122 | +fossil test-comment-format --wordbreak "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 | |
| 123 | +test comment-21 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} | |
| 84 | 124 |
| --- test/comment.test | |
| +++ test/comment.test | |
| @@ -79,5 +79,45 @@ | |
| 79 | |
| 80 | ############################################################################### |
| 81 | |
| 82 | fossil test-comment-format "*TEST* " "this\tis a test." 26 |
| 83 | test comment-13 {$RESULT eq "*TEST* this\tis a te\n st.\n(2 lines output)"} |
| 84 |
| --- test/comment.test | |
| +++ test/comment.test | |
| @@ -79,5 +79,45 @@ | |
| 79 | |
| 80 | ############################################################################### |
| 81 | |
| 82 | fossil test-comment-format "*TEST* " "this\tis a test." 26 |
| 83 | test comment-13 {$RESULT eq "*TEST* this\tis a te\n st.\n(2 lines output)"} |
| 84 | |
| 85 | ############################################################################### |
| 86 | |
| 87 | fossil test-comment-format "*TEST* " "this is a test......................................................................................................................." 60 |
| 88 | test comment-14 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} |
| 89 | |
| 90 | ############################################################################### |
| 91 | |
| 92 | fossil test-comment-format --wordbreak "*TEST* " "this is a test......................................................................................................................." 60 |
| 93 | test comment-15 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} |
| 94 | |
| 95 | ############################################################################### |
| 96 | |
| 97 | fossil test-comment-format "*TEST* " "this is a test......................................................................................................................." 60 |
| 98 | test comment-16 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} |
| 99 | |
| 100 | ############################################################################### |
| 101 | |
| 102 | fossil test-comment-format --wordbreak "*TEST* " "this is a test......................................................................................................................." 60 |
| 103 | test comment-17 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} |
| 104 | |
| 105 | ############################################################################### |
| 106 | |
| 107 | fossil test-comment-format "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 |
| 108 | test comment-18 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} |
| 109 | |
| 110 | ############################################################################### |
| 111 | |
| 112 | fossil test-comment-format --wordbreak "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 |
| 113 | test comment-19 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} |
| 114 | |
| 115 | ############################################################################### |
| 116 | |
| 117 | fossil test-comment-format "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 |
| 118 | test comment-20 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} |
| 119 | |
| 120 | ############################################################################### |
| 121 | |
| 122 | fossil test-comment-format --wordbreak "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 |
| 123 | test comment-21 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} |
| 124 |
+40
| --- test/comment.test | ||
| +++ test/comment.test | ||
| @@ -79,5 +79,45 @@ | ||
| 79 | 79 | |
| 80 | 80 | ############################################################################### |
| 81 | 81 | |
| 82 | 82 | fossil test-comment-format "*TEST* " "this\tis a test." 26 |
| 83 | 83 | test comment-13 {$RESULT eq "*TEST* this\tis a te\n st.\n(2 lines output)"} |
| 84 | + | |
| 85 | +############################################################################### | |
| 86 | + | |
| 87 | +fossil test-comment-format "*TEST* " "this is a test......................................................................................................................." 60 | |
| 88 | +test comment-14 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} | |
| 89 | + | |
| 90 | +############################################################################### | |
| 91 | + | |
| 92 | +fossil test-comment-format --wordbreak "*TEST* " "this is a test......................................................................................................................." 60 | |
| 93 | +test comment-15 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} | |
| 94 | + | |
| 95 | +############################################################################### | |
| 96 | + | |
| 97 | +fossil test-comment-format "*TEST* " "this is a test......................................................................................................................." 60 | |
| 98 | +test comment-16 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} | |
| 99 | + | |
| 100 | +############################################################################### | |
| 101 | + | |
| 102 | +fossil test-comment-format --wordbreak "*TEST* " "this is a test......................................................................................................................." 60 | |
| 103 | +test comment-17 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} | |
| 104 | + | |
| 105 | +############################################################################### | |
| 106 | + | |
| 107 | +fossil test-comment-format "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 | |
| 108 | +test comment-18 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} | |
| 109 | + | |
| 110 | +############################################################################### | |
| 111 | + | |
| 112 | +fossil test-comment-format --wordbreak "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 | |
| 113 | +test comment-19 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} | |
| 114 | + | |
| 115 | +############################################################################### | |
| 116 | + | |
| 117 | +fossil test-comment-format "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 | |
| 118 | +test comment-20 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} | |
| 119 | + | |
| 120 | +############################################################################### | |
| 121 | + | |
| 122 | +fossil test-comment-format --wordbreak "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 | |
| 123 | +test comment-21 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} | |
| 84 | 124 |
| --- test/comment.test | |
| +++ test/comment.test | |
| @@ -79,5 +79,45 @@ | |
| 79 | |
| 80 | ############################################################################### |
| 81 | |
| 82 | fossil test-comment-format "*TEST* " "this\tis a test." 26 |
| 83 | test comment-13 {$RESULT eq "*TEST* this\tis a te\n st.\n(2 lines output)"} |
| 84 |
| --- test/comment.test | |
| +++ test/comment.test | |
| @@ -79,5 +79,45 @@ | |
| 79 | |
| 80 | ############################################################################### |
| 81 | |
| 82 | fossil test-comment-format "*TEST* " "this\tis a test." 26 |
| 83 | test comment-13 {$RESULT eq "*TEST* this\tis a te\n st.\n(2 lines output)"} |
| 84 | |
| 85 | ############################################################################### |
| 86 | |
| 87 | fossil test-comment-format "*TEST* " "this is a test......................................................................................................................." 60 |
| 88 | test comment-14 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} |
| 89 | |
| 90 | ############################################################################### |
| 91 | |
| 92 | fossil test-comment-format --wordbreak "*TEST* " "this is a test......................................................................................................................." 60 |
| 93 | test comment-15 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} |
| 94 | |
| 95 | ############################################################################### |
| 96 | |
| 97 | fossil test-comment-format "*TEST* " "this is a test......................................................................................................................." 60 |
| 98 | test comment-16 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} |
| 99 | |
| 100 | ############################################################################### |
| 101 | |
| 102 | fossil test-comment-format --wordbreak "*TEST* " "this is a test......................................................................................................................." 60 |
| 103 | test comment-17 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} |
| 104 | |
| 105 | ############################################################################### |
| 106 | |
| 107 | fossil test-comment-format "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 |
| 108 | test comment-18 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} |
| 109 | |
| 110 | ############################################################################### |
| 111 | |
| 112 | fossil test-comment-format --wordbreak "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 |
| 113 | test comment-19 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} |
| 114 | |
| 115 | ############################################################################### |
| 116 | |
| 117 | fossil test-comment-format "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 |
| 118 | test comment-20 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} |
| 119 | |
| 120 | ############################################################################### |
| 121 | |
| 122 | fossil test-comment-format --wordbreak "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 |
| 123 | test comment-21 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} |
| 124 |