summaryrefslogtreecommitdiff
path: root/src/gobang.go
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-09-27 15:14:05 -0300
committerEuAndreh <eu@euandre.org>2024-09-27 15:14:05 -0300
commit1e559aded50c4d4cb92d96ebd5cf350d92814342 (patch)
tree757fede0dc3eaa7ec0b6f710787b75cd16df0004 /src/gobang.go
parenttests/gobang.go: Use d["k"].(cast) over "_, ok := ..." pattern (diff)
downloadgobang-1e559aded50c4d4cb92d96ebd5cf350d92814342.tar.gz
gobang-1e559aded50c4d4cb92d96ebd5cf350d92814342.tar.xz
s/AssertEqual/TAssertEqual/g
Diffstat (limited to 'src/gobang.go')
-rw-r--r--src/gobang.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gobang.go b/src/gobang.go
index e46b468..8bff74e 100644
--- a/src/gobang.go
+++ b/src/gobang.go
@@ -326,7 +326,7 @@ func Testing(message string, body func()) {
}
}
-func AssertEqual(given any, expected any) {
+func TAssertEqual(given any, expected any) {
if !reflect.DeepEqual(given, expected) {
if showColour() {
fmt.Fprintf(os.Stderr, "\033[0;31mERR\033[0m.\n")
@@ -340,7 +340,7 @@ func AssertEqual(given any, expected any) {
}
}
-func AssertEqualI(i int, given any, expected any) {
+func TAssertEqualI(i int, given any, expected any) {
if !reflect.DeepEqual(given, expected) {
if showColour() {
fmt.Fprintf(os.Stderr, "\033[0;31mERR\033[0m.\n")