@@ -166,6 +166,10 @@ func fakeDownloadServer(requestor, teamSlug string) *httptest.Server {
166166 fmt .Fprint (w , "this is file 2" )
167167 })
168168
169+ mux .HandleFunc ("/full/path/with/numeric-suffix/bogus-track/bogus-exercise-12345/subdir/numeric.txt" , func (w http.ResponseWriter , r * http.Request ) {
170+ fmt .Fprint (w , "with numeric suffix" )
171+ })
172+
169173 mux .HandleFunc ("/special-char-filename#.txt" , func (w http.ResponseWriter , r * http.Request ) {
170174 fmt .Fprint (w , "this is a special file" )
171175 })
@@ -217,6 +221,11 @@ func assertDownloadedCorrectFiles(t *testing.T, targetDir string) {
217221 path : filepath .Join (targetDir , "bogus-track" , "bogus-exercise" , "subdir" , "file-2.txt" ),
218222 contents : "this is file 2" ,
219223 },
224+ {
225+ desc : "a path with a numeric suffix" ,
226+ path : filepath .Join (targetDir , "bogus-track" , "bogus-exercise" , "subdir" , "numeric.txt" ),
227+ contents : "with numeric suffix" ,
228+ },
220229 {
221230 desc : "a file that requires URL encoding" ,
222231 path : filepath .Join (targetDir , "bogus-track" , "bogus-exercise" , "special-char-filename#.txt" ),
@@ -278,7 +287,8 @@ const payloadTemplate = `
278287 "/with-leading-slash.txt",
279288 "\\with-leading-backslash.txt",
280289 "\\with\\backslashes\\in\\path.txt",
281- "file-3.txt"
290+ "file-3.txt",
291+ "/full/path/with/numeric-suffix/bogus-track/bogus-exercise-12345/subdir/numeric.txt"
282292 ],
283293 "iteration": {
284294 "submitted_at": "2017-08-21t10:11:12.130z"
0 commit comments