renamed functions to *Old

renamed all funktions to *Old where static methos of the old learning system are used
This commit is contained in:
2025-08-01 06:27:38 +02:00
parent f1f2b01248
commit d40eb44af5
18 changed files with 180 additions and 267 deletions
+3 -3
View File
@@ -94,7 +94,7 @@ func TestImproveSkillHandler(t *testing.T) {
c.Request = req
// Call the actual handler function
ImproveSkill(c)
ImproveSkillOld(c)
// Print the actual response to see what we get
t.Logf("Response Status: %d", w.Code)
@@ -204,7 +204,7 @@ func TestImproveSkillHandler(t *testing.T) {
c, _ := gin.CreateTestContext(w)
c.Request = req
ImproveSkill(c)
ImproveSkillOld(c)
assert.Equal(t, http.StatusBadRequest, w.Code, "Should return 400 for insufficient EP")
@@ -234,7 +234,7 @@ func TestImproveSkillHandler(t *testing.T) {
c, _ := gin.CreateTestContext(w)
c.Request = req
ImproveSkill(c)
ImproveSkillOld(c)
assert.Equal(t, http.StatusNotFound, w.Code, "Should return 404 for non-existent character")