Fossil SCM

Update comment tests.

mistachkin 2014-06-20 19:48 UTC respectformatting
Commit fcbfd8b5a1c3ee862c84ed1063bbd22ae3e926fc
1 file changed +10 -4
--- test/comment.test
+++ test/comment.test
@@ -58,19 +58,21 @@
5858
test comment-8 {$RESULT eq "this is a short comment.\n(1 lines output)"}
5959
6060
###############################################################################
6161
6262
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)"}
6464
6565
###############################################################################
6666
67
+# FIXME: Crash.
6768
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
6869
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)"}
6970
7071
###############################################################################
7172
73
+# FIXME: Fails with what appears to be garbage output after the text.
7274
fossil test-comment-format "HH:MM:SS " "....................................................................................*" 78
7375
test comment-11 {$RESULT eq "HH:MM:SS .....................................................................\n ...............*\n(2 lines output)"}
7476
7577
###############################################################################
7678
@@ -78,29 +80,33 @@
7880
test comment-12 {$RESULT eq "HH:MM:SS .....................................................................\n *\n(2 lines output)"}
7981
8082
###############################################################################
8183
8284
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)"}
8486
8587
###############################################################################
8688
89
+# FIXME: Crash.
8790
fossil test-comment-format "*TEST* " "this is a test......................................................................................................................." 60
8891
test comment-14 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"}
8992
9093
###############################################################################
9194
95
+# FIXME: Crash.
9296
fossil test-comment-format --wordbreak "*TEST* " "this is a test......................................................................................................................." 60
9397
test comment-15 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"}
9498
9599
###############################################################################
96100
101
+# FIXME: Crash.
97102
fossil test-comment-format "*TEST* " "this is a test......................................................................................................................." 60
98103
test comment-16 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"}
99104
100105
###############################################################################
101106
107
+# FIXME: Crash.
102108
fossil test-comment-format --wordbreak "*TEST* " "this is a test......................................................................................................................." 60
103109
test comment-17 {$RESULT eq "*TEST* this is a\n test.................................................\n .....................................................\n .................\n(4 lines output)"}
104110
105111
###############################################################################
106112
@@ -113,11 +119,11 @@
113119
test comment-19 {$RESULT eq "*TEST* one two three four five six seven eight nine ten\n eleven twelve\n(2 lines output)"}
114120
115121
###############################################################################
116122
117123
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)"}
119125
120126
###############################################################################
121127
122128
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)"}
124130
--- 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

Keyboard Shortcuts

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