Skip to content

Commit a32e90a

Browse files
committed
forgot to check both cases
1 parent 8c18ef5 commit a32e90a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: arduino/builder/sketch_test.go

+7-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,13 @@ func TestLoadSketchFolder(t *testing.T) {
5555
assert.Nil(t, err)
5656
assert.NotNil(t, s)
5757
assert.Equal(t, mainFilePath, s.MainFile.Path)
58-
assert.Len(t, s.OtherSketchFiles, 2) // [old.pde, other.ino]
59-
assert.Len(t, s.AdditionalFiles, 3) // [header.h, s_file.S, src/helper.h]
58+
assert.Len(t, s.OtherSketchFiles, 2)
59+
assert.Equal(t, "old.pde", filepath.Base(s.OtherSketchFiles[0].Path))
60+
assert.Equal(t, "other.ino", filepath.Base(s.OtherSketchFiles[1].Path))
61+
assert.Len(t, s.AdditionalFiles, 3)
62+
assert.Equal(t, "header.h", filepath.Base(s.AdditionalFiles[0].Path))
63+
assert.Equal(t, "s_file.S", filepath.Base(s.AdditionalFiles[1].Path))
64+
assert.Equal(t, "helper.h", filepath.Base(s.AdditionalFiles[2].Path))
6065

6166
// pass the path to the main file
6267
sketchPath = mainFilePath

0 commit comments

Comments
 (0)