Fossil SCM

Add several tests.

mistachkin 2014-06-19 21:25 experimental
Commit bb1a191853f179d1f2b1f651f6fb617be0215391
1 file changed +29 -4
--- test/comment.test
+++ test/comment.test
@@ -37,21 +37,46 @@
3737
test comment-4 {$RESULT eq " this is a short comment.\n(1 lines output)"}
3838
3939
###############################################################################
4040
4141
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)"}
4343
4444
###############################################################################
4545
4646
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)"}
4848
4949
###############################################################################
5050
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)"}
5353
5454
###############################################################################
5555
5656
fossil test-comment-format --decode "" "this\\sis\\sa\\sshort\\scomment." 26
5757
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)"}
5883
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button