From 67c9b77cee187a11c91563e88987daac9d3ec1e8 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 10 Apr 2025 19:29:45 -0500 Subject: [PATCH 1/2] Fixed slipping --- parser/parser_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/parser_test.go b/parser/parser_test.go index 6a79fd1..e333c11 100644 --- a/parser/parser_test.go +++ b/parser/parser_test.go @@ -158,7 +158,7 @@ func updateTestData() error { hash := sha256.Sum256(htmlBytes) hashStr := hex.EncodeToString(hash[:]) if duplicate := duplicates[hashStr]; duplicate { - log.Printf("Duplicate test found %s, slipping\n", input) + log.Printf("Duplicate test found %s, skipping\n", input) continue } else { duplicates[hashStr] = true From 1289374c891bc7138f6d58c991c859b11fb6b145 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 10 Apr 2025 20:52:52 -0500 Subject: [PATCH 2/2] Fix parser_test.go capitalization (unix files are case sensitive) --- parser/parser_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parser/parser_test.go b/parser/parser_test.go index e333c11..95ccf86 100644 --- a/parser/parser_test.go +++ b/parser/parser_test.go @@ -98,7 +98,7 @@ func loadTest(dir string) (result TestData, err error) { if err != nil { return } - result.ClassInfo, err = unmarshallFile[map[string]string](fmt.Sprintf("testdata/%s/classinfo.json", dir)) + result.ClassInfo, err = unmarshallFile[map[string]string](fmt.Sprintf("testdata/%s/classInfo.json", dir)) if err != nil { return } @@ -202,7 +202,7 @@ func updateTestData() error { return fmt.Errorf("failed to write course %v: %v", course.Id, err) } - if err = utils.WriteJSON(filepath.Join(caseDir, "ClassInfo.json"), classInfo); err != nil { + if err = utils.WriteJSON(filepath.Join(caseDir, "classInfo.json"), classInfo); err != nil { return fmt.Errorf("failed to write class info %v", err) }