Skip to content

Commit ca98adb

Browse files
Fixes 2 typos (#66)
* Fixed slipping * Fix parser_test.go capitalization (unix files are case sensitive)
1 parent 199c1ba commit ca98adb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

parser/parser_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func loadTest(dir string) (result TestData, err error) {
9898
if err != nil {
9999
return
100100
}
101-
result.ClassInfo, err = unmarshallFile[map[string]string](fmt.Sprintf("testdata/%s/classinfo.json", dir))
101+
result.ClassInfo, err = unmarshallFile[map[string]string](fmt.Sprintf("testdata/%s/classInfo.json", dir))
102102
if err != nil {
103103
return
104104
}
@@ -158,7 +158,7 @@ func updateTestData() error {
158158
hash := sha256.Sum256(htmlBytes)
159159
hashStr := hex.EncodeToString(hash[:])
160160
if duplicate := duplicates[hashStr]; duplicate {
161-
log.Printf("Duplicate test found %s, slipping\n", input)
161+
log.Printf("Duplicate test found %s, skipping\n", input)
162162
continue
163163
} else {
164164
duplicates[hashStr] = true
@@ -202,7 +202,7 @@ func updateTestData() error {
202202
return fmt.Errorf("failed to write course %v: %v", course.Id, err)
203203
}
204204

205-
if err = utils.WriteJSON(filepath.Join(caseDir, "ClassInfo.json"), classInfo); err != nil {
205+
if err = utils.WriteJSON(filepath.Join(caseDir, "classInfo.json"), classInfo); err != nil {
206206
return fmt.Errorf("failed to write class info %v", err)
207207
}
208208

0 commit comments

Comments
 (0)