diff options
-rw-r--r-- | src/gobang.go | 2 | ||||
-rw-r--r-- | tests/gobang.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gobang.go b/src/gobang.go index f135aa3..f27cdea 100644 --- a/src/gobang.go +++ b/src/gobang.go @@ -122,7 +122,7 @@ func anyArr[S ~[]E, E any](arr S) []any { return ret } -const sourceInfoSkip = 3 +const sourceInfoSkip = 4 func Debug(message string, type_ string, args ...any) { if level < LevelDebug { return diff --git a/tests/gobang.go b/tests/gobang.go index 954f588..7a88f28 100644 --- a/tests/gobang.go +++ b/tests/gobang.go @@ -657,14 +657,14 @@ func test_SetLoggerOutput() { AssertEqual(ok, true) file, ok := fileRaw.(string) AssertEqual(ok, true) - const FILENAME = "tests/gobang.go" + const FILENAME = "g/src/gobang.go" AssertEqual(file[len(file) - len(FILENAME):], FILENAME) functionRaw, ok := src["function"] AssertEqual(ok, true) function, ok := functionRaw.(string) AssertEqual(ok, true) - AssertEqual(function, "gobang.test_SetLoggerOutput.func1") + AssertEqual(function, "gobang.Testing") lineRaw, ok := src["line"] AssertEqual(ok, true) |