Fossil SCM
Update comment tests.
Commit
fcbfd8b5a1c3ee862c84ed1063bbd22ae3e926fc
Parent
fc84a01a8b36bf9…
1 file changed
+10
-4
+10
-4
| --- test/comment.test | ||
| +++ test/comment.test | ||
| @@ -58,19 +58,21 @@ | ||
| 58 | 58 | test comment-8 {$RESULT eq "this is a short comment.\n(1 lines output)"} |
| 59 | 59 | |
| 60 | 60 | ############################################################################### |
| 61 | 61 | |
| 62 | 62 | fossil test-comment-format --decode "HH:MM:SS " "this is a long comment that should span multiple lines if the test is working correctly." 78 |
| 63 | -test comment-9 {$RESULT eq "HH:MM:SS this is a long comment that should span multiple lines if the test is\n working correctly.\n(2 lines output)"} | |
| 63 | +test comment-9 {$RESULT eq "HH:MM:SS this is a long comment that should span multiple lines if the test\n is working correctly.\n(2 lines output)"} | |
| 64 | 64 | |
| 65 | 65 | ############################################################################### |
| 66 | 66 | |
| 67 | +# FIXME: Crash. | |
| 67 | 68 | fossil test-comment-format --decode "HH:MM:SS " "this is a long comment that should span multiple lines if the test is working correctly. more text here describing the issue.\\nanother line here..................................................................................*" 78 |
| 68 | 69 | test comment-10 {$RESULT eq "HH:MM:SS this is a long comment that should span multiple lines if the test is\n working correctly. more text here describing the issue.\n another line here....................................................\n ..............................*\n(4 lines output)"} |
| 69 | 70 | |
| 70 | 71 | ############################################################################### |
| 71 | 72 | |
| 73 | +# FIXME: Fails with what appears to be garbage output after the text. | |
| 72 | 74 | fossil test-comment-format "HH:MM:SS " "....................................................................................*" 78 |
| 73 | 75 | test comment-11 {$RESULT eq "HH:MM:SS .....................................................................\n ...............*\n(2 lines output)"} |
| 74 | 76 | |
| 75 | 77 | ############################################################################### |
| 76 | 78 | |
| @@ -78,29 +80,33 @@ | ||
| 78 | 80 | test comment-12 {$RESULT eq "HH:MM:SS .....................................................................\n *\n(2 lines output)"} |
| 79 | 81 | |
| 80 | 82 | ############################################################################### |
| 81 | 83 | |
| 82 | 84 | 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)"} | |
| 85 | +test comment-13 {$RESULT eq "*TEST* this is a\n test.\n(2 lines output)"} | |
| 84 | 86 | |
| 85 | 87 | ############################################################################### |
| 86 | 88 | |
| 89 | +# FIXME: Crash. | |
| 87 | 90 | fossil test-comment-format "*TEST* " "this is a test......................................................................................................................." 60 |
| 88 | 91 | test comment-14 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} |
| 89 | 92 | |
| 90 | 93 | ############################################################################### |
| 91 | 94 | |
| 95 | +# FIXME: Crash. | |
| 92 | 96 | fossil test-comment-format --wordbreak "*TEST* " "this is a test......................................................................................................................." 60 |
| 93 | 97 | test comment-15 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} |
| 94 | 98 | |
| 95 | 99 | ############################################################################### |
| 96 | 100 | |
| 101 | +# FIXME: Crash. | |
| 97 | 102 | fossil test-comment-format "*TEST* " "this is a test......................................................................................................................." 60 |
| 98 | 103 | test comment-16 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} |
| 99 | 104 | |
| 100 | 105 | ############################################################################### |
| 101 | 106 | |
| 107 | +# FIXME: Crash. | |
| 102 | 108 | fossil test-comment-format --wordbreak "*TEST* " "this is a test......................................................................................................................." 60 |
| 103 | 109 | test comment-17 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} |
| 104 | 110 | |
| 105 | 111 | ############################################################################### |
| 106 | 112 | |
| @@ -113,11 +119,11 @@ | ||
| 113 | 119 | test comment-19 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} |
| 114 | 120 | |
| 115 | 121 | ############################################################################### |
| 116 | 122 | |
| 117 | 123 | 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)"} | |
| 124 | +test comment-20 {$RESULT eq "*TEST* one two three four five\n six seven eight nine ten\n eleven twelve\n(3 lines output)"} | |
| 119 | 125 | |
| 120 | 126 | ############################################################################### |
| 121 | 127 | |
| 122 | 128 | 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)"} | |
| 129 | +test comment-21 {$RESULT eq "*TEST* one two three four five\n six seven eight nine ten\n eleven twelve\n(3 lines output)"} | |
| 124 | 130 |
| --- test/comment.test | |
| +++ test/comment.test | |
| @@ -58,19 +58,21 @@ | |
| 58 | test comment-8 {$RESULT eq "this is a short comment.\n(1 lines output)"} |
| 59 | |
| 60 | ############################################################################### |
| 61 | |
| 62 | fossil test-comment-format --decode "HH:MM:SS " "this is a long comment that should span multiple lines if the test is working correctly." 78 |
| 63 | test comment-9 {$RESULT eq "HH:MM:SS this is a long comment that should span multiple lines if the test is\n working correctly.\n(2 lines output)"} |
| 64 | |
| 65 | ############################################################################### |
| 66 | |
| 67 | fossil test-comment-format --decode "HH:MM:SS " "this is a long comment that should span multiple lines if the test is working correctly. more text here describing the issue.\\nanother line here..................................................................................*" 78 |
| 68 | test comment-10 {$RESULT eq "HH:MM:SS this is a long comment that should span multiple lines if the test is\n working correctly. more text here describing the issue.\n another line here....................................................\n ..............................*\n(4 lines output)"} |
| 69 | |
| 70 | ############################################################################### |
| 71 | |
| 72 | fossil test-comment-format "HH:MM:SS " "....................................................................................*" 78 |
| 73 | test comment-11 {$RESULT eq "HH:MM:SS .....................................................................\n ...............*\n(2 lines output)"} |
| 74 | |
| 75 | ############################################################################### |
| 76 | |
| @@ -78,29 +80,33 @@ | |
| 78 | test comment-12 {$RESULT eq "HH:MM:SS .....................................................................\n *\n(2 lines output)"} |
| 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 | |
| @@ -113,11 +119,11 @@ | |
| 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 |
| --- test/comment.test | |
| +++ test/comment.test | |
| @@ -58,19 +58,21 @@ | |
| 58 | test comment-8 {$RESULT eq "this is a short comment.\n(1 lines output)"} |
| 59 | |
| 60 | ############################################################################### |
| 61 | |
| 62 | fossil test-comment-format --decode "HH:MM:SS " "this is a long comment that should span multiple lines if the test is working correctly." 78 |
| 63 | test comment-9 {$RESULT eq "HH:MM:SS this is a long comment that should span multiple lines if the test\n is working correctly.\n(2 lines output)"} |
| 64 | |
| 65 | ############################################################################### |
| 66 | |
| 67 | # FIXME: Crash. |
| 68 | fossil test-comment-format --decode "HH:MM:SS " "this is a long comment that should span multiple lines if the test is working correctly. more text here describing the issue.\\nanother line here..................................................................................*" 78 |
| 69 | test comment-10 {$RESULT eq "HH:MM:SS this is a long comment that should span multiple lines if the test is\n working correctly. more text here describing the issue.\n another line here....................................................\n ..............................*\n(4 lines output)"} |
| 70 | |
| 71 | ############################################################################### |
| 72 | |
| 73 | # FIXME: Fails with what appears to be garbage output after the text. |
| 74 | fossil test-comment-format "HH:MM:SS " "....................................................................................*" 78 |
| 75 | test comment-11 {$RESULT eq "HH:MM:SS .....................................................................\n ...............*\n(2 lines output)"} |
| 76 | |
| 77 | ############################################################################### |
| 78 | |
| @@ -78,29 +80,33 @@ | |
| 80 | test comment-12 {$RESULT eq "HH:MM:SS .....................................................................\n *\n(2 lines output)"} |
| 81 | |
| 82 | ############################################################################### |
| 83 | |
| 84 | fossil test-comment-format "*TEST* " "this\tis a test." 26 |
| 85 | test comment-13 {$RESULT eq "*TEST* this is a\n test.\n(2 lines output)"} |
| 86 | |
| 87 | ############################################################################### |
| 88 | |
| 89 | # FIXME: Crash. |
| 90 | fossil test-comment-format "*TEST* " "this is a test......................................................................................................................." 60 |
| 91 | test comment-14 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} |
| 92 | |
| 93 | ############################################################################### |
| 94 | |
| 95 | # FIXME: Crash. |
| 96 | fossil test-comment-format --wordbreak "*TEST* " "this is a test......................................................................................................................." 60 |
| 97 | test comment-15 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} |
| 98 | |
| 99 | ############################################################################### |
| 100 | |
| 101 | # FIXME: Crash. |
| 102 | fossil test-comment-format "*TEST* " "this is a test......................................................................................................................." 60 |
| 103 | test comment-16 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} |
| 104 | |
| 105 | ############################################################################### |
| 106 | |
| 107 | # FIXME: Crash. |
| 108 | fossil test-comment-format --wordbreak "*TEST* " "this is a test......................................................................................................................." 60 |
| 109 | test comment-17 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"} |
| 110 | |
| 111 | ############################################################################### |
| 112 | |
| @@ -113,11 +119,11 @@ | |
| 119 | test comment-19 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"} |
| 120 | |
| 121 | ############################################################################### |
| 122 | |
| 123 | fossil test-comment-format "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 |
| 124 | test comment-20 {$RESULT eq "*TEST* one two three four five\n six seven eight nine ten\n eleven twelve\n(3 lines output)"} |
| 125 | |
| 126 | ############################################################################### |
| 127 | |
| 128 | fossil test-comment-format --wordbreak "*TEST* " "one two three four five six seven eight nine ten eleven twelve" 60 |
| 129 | test comment-21 {$RESULT eq "*TEST* one two three four five\n six seven eight nine ten\n eleven twelve\n(3 lines output)"} |
| 130 |