1[ 2 { 3 "output" : "", 4 "input" : "", 5 "name" : "normalisePathWin", 6 "type" : "tfn", 7 "ret" : 0 8 }, 9 { 10 "output" : "/foo/bar/baz", 11 "ret" : 1, 12 "name" : "normalisePathWin", 13 "input" : "\\foo\\bar\\baz", 14 "type" : "tfn" 15 }, 16 { 17 "type" : "tfn", 18 "input" : "\\foo\\bar\\u0000\\baz", 19 "name" : "normalisePathWin", 20 "ret" : 1, 21 "output" : "/foo/bar\\u0000/baz" 22 }, 23 { 24 "output" : "x", 25 "name" : "normalisePathWin", 26 "input" : "x", 27 "type" : "tfn", 28 "ret" : 0 29 }, 30 { 31 "ret" : 1, 32 "type" : "tfn", 33 "input" : ".", 34 "name" : "normalisePathWin", 35 "output" : "" 36 }, 37 { 38 "output" : "", 39 "input" : ".\\", 40 "type" : "tfn", 41 "name" : "normalisePathWin", 42 "ret" : 1 43 }, 44 { 45 "type" : "tfn", 46 "input" : ".\\..", 47 "name" : "normalisePathWin", 48 "ret" : 1, 49 "output" : ".." 50 }, 51 { 52 "name" : "normalisePathWin", 53 "input" : ".\\..\\", 54 "type" : "tfn", 55 "ret" : 1, 56 "output" : "../" 57 }, 58 { 59 "type" : "tfn", 60 "input" : "..", 61 "name" : "normalisePathWin", 62 "ret" : 0, 63 "output" : ".." 64 }, 65 { 66 "ret" : 1, 67 "input" : "..\\", 68 "name" : "normalisePathWin", 69 "type" : "tfn", 70 "output" : "../" 71 }, 72 { 73 "name" : "normalisePathWin", 74 "input" : "..\\.", 75 "type" : "tfn", 76 "ret" : 1, 77 "output" : ".." 78 }, 79 { 80 "input" : "..\\.\\", 81 "type" : "tfn", 82 "name" : "normalisePathWin", 83 "ret" : 1, 84 "output" : "../" 85 }, 86 { 87 "output" : "../..", 88 "input" : "..\\..", 89 "type" : "tfn", 90 "name" : "normalisePathWin", 91 "ret" : 1 92 }, 93 { 94 "ret" : 1, 95 "input" : "..\\..\\", 96 "name" : "normalisePathWin", 97 "type" : "tfn", 98 "output" : "../../" 99 }, 100 { 101 "ret" : 1, 102 "name" : "normalisePathWin", 103 "input" : "\\dir\\foo\\\\bar", 104 "type" : "tfn", 105 "output" : "/dir/foo/bar" 106 }, 107 { 108 "output" : "dir/foo/bar/", 109 "ret" : 1, 110 "type" : "tfn", 111 "input" : "dir\\foo\\\\bar\\", 112 "name" : "normalisePathWin" 113 }, 114 { 115 "output" : "foo", 116 "input" : "dir\\..\\foo", 117 "name" : "normalisePathWin", 118 "type" : "tfn", 119 "ret" : 1 120 }, 121 { 122 "type" : "tfn", 123 "input" : "dir\\..\\..\\foo", 124 "name" : "normalisePathWin", 125 "ret" : 1, 126 "output" : "../foo" 127 }, 128 { 129 "ret" : 1, 130 "type" : "tfn", 131 "input" : "dir\\.\\..\\.\\..\\..\\foo\\bar", 132 "name" : "normalisePathWin", 133 "output" : "../../foo/bar" 134 }, 135 { 136 "output" : "../../foo/bar", 137 "input" : "dir\\.\\..\\.\\..\\..\\foo\\bar\\.", 138 "type" : "tfn", 139 "name" : "normalisePathWin", 140 "ret" : 1 141 }, 142 { 143 "input" : "dir\\.\\..\\.\\..\\..\\foo\\bar\\.\\", 144 "type" : "tfn", 145 "name" : "normalisePathWin", 146 "ret" : 1, 147 "output" : "../../foo/bar/" 148 }, 149 { 150 "input" : "dir\\.\\..\\.\\..\\..\\foo\\bar\\..", 151 "name" : "normalisePathWin", 152 "type" : "tfn", 153 "ret" : 1, 154 "output" : "../../foo" 155 }, 156 { 157 "ret" : 1, 158 "name" : "normalisePathWin", 159 "input" : "dir\\.\\..\\.\\..\\..\\foo\\bar\\..\\", 160 "type" : "tfn", 161 "output" : "../../foo/" 162 }, 163 { 164 "output" : "../../foo/bar/", 165 "input" : "dir\\.\\..\\.\\..\\..\\foo\\bar\\", 166 "name" : "normalisePathWin", 167 "type" : "tfn", 168 "ret" : 1 169 }, 170 { 171 "output" : "../../foo/bar", 172 "input" : "dir\\\\.\\\\..\\\\.\\\\..\\\\..\\\\foo\\\\bar", 173 "name" : "normalisePathWin", 174 "type" : "tfn", 175 "ret" : 1 176 }, 177 { 178 "output" : "../../foo/bar/", 179 "name" : "normalisePathWin", 180 "input" : "dir\\\\.\\\\..\\\\.\\\\..\\\\..\\\\foo\\\\bar\\\\", 181 "type" : "tfn", 182 "ret" : 1 183 }, 184 { 185 "input" : "dir\\subdir\\subsubdir\\subsubsubdir\\..\\..\\..", 186 "type" : "tfn", 187 "name" : "normalisePathWin", 188 "ret" : 1, 189 "output" : "dir" 190 }, 191 { 192 "ret" : 1, 193 "type" : "tfn", 194 "input" : "dir\\.\\subdir\\.\\subsubdir\\.\\subsubsubdir\\..\\..\\..", 195 "name" : "normalisePathWin", 196 "output" : "dir" 197 }, 198 { 199 "input" : "dir\\.\\subdir\\..\\subsubdir\\..\\subsubsubdir\\..", 200 "name" : "normalisePathWin", 201 "type" : "tfn", 202 "ret" : 1, 203 "output" : "dir" 204 }, 205 { 206 "output" : "/dir/", 207 "ret" : 1, 208 "input" : "\\dir\\.\\subdir\\..\\subsubdir\\..\\subsubsubdir\\..\\", 209 "type" : "tfn", 210 "name" : "normalisePathWin" 211 }, 212 { 213 "output" : "/etc/passwd", 214 "ret" : 1, 215 "input" : "\\.\\..\\.\\..\\..\\..\\..\\..\\..\\..\\\\0\\..\\etc\\.\\passwd", 216 "name" : "normalisePathWin", 217 "type" : "tfn" 218 } 219] 220