| | @@ -16,11 +16,11 @@ |
| 16 | 16 | ############################################################################ |
| 17 | 17 | # |
| 18 | 18 | # The focus of this file is to test pre-commit warnings. |
| 19 | 19 | # |
| 20 | 20 | |
| 21 | | -test_setup |
| 21 | +test_setup |
| 22 | 22 | |
| 23 | 23 | # binary |
| 24 | 24 | write_file binary "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 25 | 25 | |
| 26 | 26 | # text with CRLF lines |
| | @@ -60,13 +60,13 @@ |
| 60 | 60 | set a15 $a14$a14 |
| 61 | 61 | set a16 $a15$a15 |
| 62 | 62 | write_file line-64K "$a16\n" |
| 63 | 63 | |
| 64 | 64 | # UTF-8 extends 7-bit ASCII using bytes 80 and above to encode |
| 65 | | -# larger character codes. Unicode uses U+0 through U+10FFFF only, |
| 65 | +# larger character codes. Unicode uses U+0 through U+10FFFF only, |
| 66 | 66 | # with U+D800 through U+DFFF reserved for surrogate pairs. |
| 67 | | -# UTF-8 is valid if it is the shortest possible coding, encodes a |
| 67 | +# UTF-8 is valid if it is the shortest possible coding, encodes a |
| 68 | 68 | # valid Unicode code point. But it's complicated. |
| 69 | 69 | write_file utf-mod-c0-80 "11 bit NUL:\xC0\x80 is sometimes ok\n" |
| 70 | 70 | write_file utf-bad-e0-80-80 "16 bit NUL:\xE0\x80\x80 is bad\n" |
| 71 | 71 | write_file utf-bad-f0-80-80-80 "21 bit NUL:\xF0\x80\x80\x80 is bad\n" |
| 72 | 72 | write_file utf-bad-f8-80-80-80-80 "26 bit NUL:\xF8\x80\x80\x80\x80 is bad\n" |
| | @@ -99,15 +99,15 @@ |
| 99 | 99 | write_file utf-16be-bombe-hello "$bomBE$hello16BE" |
| 100 | 100 | write_file utf-16le-bombe-hello "$bomBE$hello16LE" |
| 101 | 101 | write_file utf-16be-bomle-hello "$bomLE$hello16BE" |
| 102 | 102 | set le16 [read_file [file join $testdir utf16le.txt]] |
| 103 | 103 | set be16 [read_file [file join $testdir utf16be.txt]] |
| 104 | | -write_file utf-16le.txt $le16 |
| 104 | +write_file utf-16le.txt $le16 |
| 105 | 105 | write_file utf-16be.txt $be16 |
| 106 | | -write_file utf-nobom-16le.txt [string range $le16 2 end] |
| 106 | +write_file utf-nobom-16le.txt [string range $le16 2 end] |
| 107 | 107 | write_file utf-nobom-16be.txt [string range $be16 2 end] |
| 108 | | -#write_file [file join $::env(TEMP) utf-nobom-16le.txt] [string range $le16 2 end] |
| 108 | +#write_file [file join $::env(TEMP) utf-nobom-16le.txt] [string range $le16 2 end] |
| 109 | 109 | #write_file [file join $::env(TEMP) utf-nobom-16be.txt] [string range $be16 2 end] |
| 110 | 110 | |
| 111 | 111 | # make all the test files known to fossil, then test |
| 112 | 112 | fossil addremove |
| 113 | 113 | fossil test-commit-warning --no-settings -v |
| | @@ -157,11 +157,11 @@ |
| 157 | 157 | ############################################################################### |
| 158 | 158 | |
| 159 | 159 | # TODO: Change to a collection of test-case crafted files |
| 160 | 160 | # rather than depend on this list of files that will |
| 161 | 161 | # be fragile as development progresses. |
| 162 | | -# |
| 162 | +# |
| 163 | 163 | # Unless the real goal of this test is to document a collection |
| 164 | 164 | # of source files that MUST NEVER BE TEXT. |
| 165 | 165 | # |
| 166 | 166 | run_in_checkout { |
| 167 | 167 | fossil test-commit-warning --no-settings |
| | @@ -296,10 +296,10 @@ |
| 296 | 296 | 1\twww/fossil3.gif\tbinary data |
| 297 | 297 | 1\twww/fossil_logo_small.gif\tbinary data |
| 298 | 298 | 1\twww/fossil_logo_small2.gif\tbinary data |
| 299 | 299 | 1\twww/fossil_logo_small3.gif\tbinary data |
| 300 | 300 | 1\twww/xkcd-git.gif\tbinary data |
| 301 | | -1}]]} |
| 301 | +1}]]} |
| 302 | 302 | |
| 303 | 303 | ############################################################################### |
| 304 | 304 | |
| 305 | 305 | test_cleanup |
| 306 | 306 | |