Fossil SCM
Add several tests.
Commit
bb1a191853f179d1f2b1f651f6fb617be0215391
Parent
89aa595f8828b70…
1 file changed
+29
-4
+29
-4
| --- test/comment.test | ||
| +++ test/comment.test | ||
| @@ -37,21 +37,46 @@ | ||
| 37 | 37 | test comment-4 {$RESULT eq " this is a short comment.\n(1 lines output)"} |
| 38 | 38 | |
| 39 | 39 | ############################################################################### |
| 40 | 40 | |
| 41 | 41 | fossil test-comment-format "*PREFIX* " "this is a short comment." 26 |
| 42 | -test comment-5 {$RESULT eq "*PREFIX* this is a short\n comment.\n(2 lines output)"} | |
| 42 | +test comment-5 {$RESULT eq "*PREFIX* this is a short c\n omment.\n(2 lines output)"} | |
| 43 | 43 | |
| 44 | 44 | ############################################################################### |
| 45 | 45 | |
| 46 | 46 | fossil test-comment-format --decode "*PREFIX* " "this is a short comment." 26 |
| 47 | -test comment-6 {$RESULT eq "*PREFIX* this is a short\n comment.\n(2 lines output)"} | |
| 47 | +test comment-6 {$RESULT eq "*PREFIX* this is a short c\n omment.\n(2 lines output)"} | |
| 48 | 48 | |
| 49 | 49 | ############################################################################### |
| 50 | 50 | |
| 51 | -fossil test-comment-format "" "this\\sis\\sa\\sshort\\scomment." | |
| 52 | -test comment-7 {$RESULT eq "this\\sis\\sa\\sshort\\scomment.\n(1 lines output)"} | |
| 51 | +fossil test-comment-format "" "this\\sis\\sa\\sshort\\scomment." 26 | |
| 52 | +test comment-7 {$RESULT eq "this\\sis\\sa\\sshort\\scommen\nt.\n(2 lines output)"} | |
| 53 | 53 | |
| 54 | 54 | ############################################################################### |
| 55 | 55 | |
| 56 | 56 | fossil test-comment-format --decode "" "this\\sis\\sa\\sshort\\scomment." 26 |
| 57 | 57 | test comment-8 {$RESULT eq "this is a short comment.\n(1 lines output)"} |
| 58 | + | |
| 59 | +############################################################################### | |
| 60 | + | |
| 61 | +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 | |
| 62 | +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 | + | |
| 64 | +############################################################################### | |
| 65 | + | |
| 66 | +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 | |
| 67 | +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)"} | |
| 68 | + | |
| 69 | +############################################################################### | |
| 70 | + | |
| 71 | +fossil test-comment-format "HH:MM:SS " "....................................................................................*" 78 | |
| 72 | +test comment-11 {$RESULT eq "HH:MM:SS .....................................................................\n ...............*\n(2 lines output)"} | |
| 73 | + | |
| 74 | +############################################################################### | |
| 75 | + | |
| 76 | +fossil test-comment-format "HH:MM:SS " ".....................................................................*" 78 | |
| 77 | +test comment-12 {$RESULT eq "HH:MM:SS .....................................................................\n *\n(2 lines output)"} | |
| 78 | + | |
| 79 | +############################################################################### | |
| 80 | + | |
| 81 | +fossil test-comment-format "*TEST* " "this\tis a test." 26 | |
| 82 | +test comment-13 {$RESULT eq "*TEST* this\tis a te\n st.\n(2 lines output)"} | |
| 58 | 83 |
| --- test/comment.test | |
| +++ test/comment.test | |
| @@ -37,21 +37,46 @@ | |
| 37 | test comment-4 {$RESULT eq " this is a short comment.\n(1 lines output)"} |
| 38 | |
| 39 | ############################################################################### |
| 40 | |
| 41 | fossil test-comment-format "*PREFIX* " "this is a short comment." 26 |
| 42 | test comment-5 {$RESULT eq "*PREFIX* this is a short\n comment.\n(2 lines output)"} |
| 43 | |
| 44 | ############################################################################### |
| 45 | |
| 46 | fossil test-comment-format --decode "*PREFIX* " "this is a short comment." 26 |
| 47 | test comment-6 {$RESULT eq "*PREFIX* this is a short\n comment.\n(2 lines output)"} |
| 48 | |
| 49 | ############################################################################### |
| 50 | |
| 51 | fossil test-comment-format "" "this\\sis\\sa\\sshort\\scomment." |
| 52 | test comment-7 {$RESULT eq "this\\sis\\sa\\sshort\\scomment.\n(1 lines output)"} |
| 53 | |
| 54 | ############################################################################### |
| 55 | |
| 56 | fossil test-comment-format --decode "" "this\\sis\\sa\\sshort\\scomment." 26 |
| 57 | test comment-8 {$RESULT eq "this is a short comment.\n(1 lines output)"} |
| 58 |
| --- test/comment.test | |
| +++ test/comment.test | |
| @@ -37,21 +37,46 @@ | |
| 37 | test comment-4 {$RESULT eq " this is a short comment.\n(1 lines output)"} |
| 38 | |
| 39 | ############################################################################### |
| 40 | |
| 41 | fossil test-comment-format "*PREFIX* " "this is a short comment." 26 |
| 42 | test comment-5 {$RESULT eq "*PREFIX* this is a short c\n omment.\n(2 lines output)"} |
| 43 | |
| 44 | ############################################################################### |
| 45 | |
| 46 | fossil test-comment-format --decode "*PREFIX* " "this is a short comment." 26 |
| 47 | test comment-6 {$RESULT eq "*PREFIX* this is a short c\n omment.\n(2 lines output)"} |
| 48 | |
| 49 | ############################################################################### |
| 50 | |
| 51 | fossil test-comment-format "" "this\\sis\\sa\\sshort\\scomment." 26 |
| 52 | test comment-7 {$RESULT eq "this\\sis\\sa\\sshort\\scommen\nt.\n(2 lines output)"} |
| 53 | |
| 54 | ############################################################################### |
| 55 | |
| 56 | fossil test-comment-format --decode "" "this\\sis\\sa\\sshort\\scomment." 26 |
| 57 | test comment-8 {$RESULT eq "this is a short comment.\n(1 lines output)"} |
| 58 | |
| 59 | ############################################################################### |
| 60 | |
| 61 | 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 |
| 62 | 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 | |
| 64 | ############################################################################### |
| 65 | |
| 66 | 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 |
| 67 | 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)"} |
| 68 | |
| 69 | ############################################################################### |
| 70 | |
| 71 | fossil test-comment-format "HH:MM:SS " "....................................................................................*" 78 |
| 72 | test comment-11 {$RESULT eq "HH:MM:SS .....................................................................\n ...............*\n(2 lines output)"} |
| 73 | |
| 74 | ############################################################################### |
| 75 | |
| 76 | fossil test-comment-format "HH:MM:SS " ".....................................................................*" 78 |
| 77 | test comment-12 {$RESULT eq "HH:MM:SS .....................................................................\n *\n(2 lines output)"} |
| 78 | |
| 79 | ############################################################################### |
| 80 | |
| 81 | fossil test-comment-format "*TEST* " "this\tis a test." 26 |
| 82 | test comment-13 {$RESULT eq "*TEST* this\tis a te\n st.\n(2 lines output)"} |
| 83 |