summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorZhizhen He <hezhizhen.yi@gmail.com>2023-02-22 23:36:04 +0800
committerGitHub <noreply@github.com>2023-02-23 00:36:04 +0900
commit3364d4d147ade148d8e5dd67609e46f0ef6c50fc (patch)
tree976d70d7d218cb1c29143201390db4c8d19b1715 /src/util
parent57ad21e4bd2d9c59cdfe0522183ac12c30ee2f05 (diff)
Add spell check workflow (#3183)
Diffstat (limited to 'src/util')
-rw-r--r--src/util/util_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/util_test.go b/src/util/util_test.go
index 534eeb71..27e7a049 100644
--- a/src/util/util_test.go
+++ b/src/util/util_test.go
@@ -70,7 +70,7 @@ func TestMin32(t *testing.T) {
}
}
-func TestContrain(t *testing.T) {
+func TestConstrain(t *testing.T) {
if Constrain(-3, -1, 3) != -1 {
t.Error("Expected", -1)
}
@@ -83,7 +83,7 @@ func TestContrain(t *testing.T) {
}
}
-func TestContrain32(t *testing.T) {
+func TestConstrain32(t *testing.T) {
if Constrain32(-3, -1, 3) != -1 {
t.Error("Expected", -1)
}