@@ -291,41 +291,6 @@ func TestGenBuildPath(t *testing.T) {
291
291
assert .Equal (t , "ACBD18DB4CC2F85CEDEF654FCCC4A4D8" , (& Sketch {FullPath : paths .New ("foo" )}).Hash ())
292
292
}
293
293
294
- func TestCheckForPdeFiles (t * testing.T ) {
295
- sketchPath := paths .New ("testdata" , "SketchSimple" )
296
- files := CheckForPdeFiles (sketchPath )
297
- require .Empty (t , files )
298
-
299
- sketchPath = paths .New ("testdata" , "SketchPde" )
300
- files = CheckForPdeFiles (sketchPath )
301
- require .Len (t , files , 1 )
302
- require .Equal (t , sketchPath .Join ("SketchPde.pde" ), files [0 ])
303
-
304
- sketchPath = paths .New ("testdata" , "SketchMultipleMainFiles" )
305
- files = CheckForPdeFiles (sketchPath )
306
- require .Len (t , files , 1 )
307
- require .Equal (t , sketchPath .Join ("SketchMultipleMainFiles.pde" ), files [0 ])
308
-
309
- sketchPath = paths .New ("testdata" , "SketchSimple" , "SketchSimple.ino" )
310
- files = CheckForPdeFiles (sketchPath )
311
- require .Empty (t , files )
312
-
313
- sketchPath = paths .New ("testdata" , "SketchPde" , "SketchPde.pde" )
314
- files = CheckForPdeFiles (sketchPath )
315
- require .Len (t , files , 1 )
316
- require .Equal (t , sketchPath .Parent ().Join ("SketchPde.pde" ), files [0 ])
317
-
318
- sketchPath = paths .New ("testdata" , "SketchMultipleMainFiles" , "SketchMultipleMainFiles.ino" )
319
- files = CheckForPdeFiles (sketchPath )
320
- require .Len (t , files , 1 )
321
- require .Equal (t , sketchPath .Parent ().Join ("SketchMultipleMainFiles.pde" ), files [0 ])
322
-
323
- sketchPath = paths .New ("testdata" , "SketchMultipleMainFiles" , "SketchMultipleMainFiles.pde" )
324
- files = CheckForPdeFiles (sketchPath )
325
- require .Len (t , files , 1 )
326
- require .Equal (t , sketchPath .Parent ().Join ("SketchMultipleMainFiles.pde" ), files [0 ])
327
- }
328
-
329
294
func TestNewSketchWithSymlink (t * testing.T ) {
330
295
sketchPath , _ := paths .New ("testdata" , "SketchWithSymlink" ).Abs ()
331
296
mainFilePath := sketchPath .Join ("SketchWithSymlink.ino" )
0 commit comments