From 85d8bb6eea715dcbbb68f7c87b50e1956e20f892 Mon Sep 17 00:00:00 2001 From: ccoVeille <3875889+ccoVeille@users.noreply.github.com> Date: Sat, 24 Feb 2024 23:48:24 +0100 Subject: [PATCH] fix typos in comments, tests and github templates --- .github/ISSUE_TEMPLATE/bug_report.md | 6 +++--- assert/assertions_test.go | 2 +- suite/suite_test.go | 14 +++++++------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index aaa03677a..374aa3c35 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -14,10 +14,10 @@ assignees: '' ## Step To Reproduce - + -## Expected behaviour +## Expected behavior -## Actual behaviour +## Actual behavior diff --git a/assert/assertions_test.go b/assert/assertions_test.go index 1cc51eb5f..1636be56f 100644 --- a/assert/assertions_test.go +++ b/assert/assertions_test.go @@ -880,7 +880,7 @@ func TestNotEqualValues(t *testing.T) { {new(AssertionTesterConformingObject), new(AssertionTesterConformingObject), false}, {&struct{}{}, &struct{}{}, false}, - // Different behaviour from NotEqual() + // Different behavior from NotEqual() {func() int { return 23 }, func() int { return 24 }, true}, {int(10), int(11), true}, {int(10), uint(10), false}, diff --git a/suite/suite_test.go b/suite/suite_test.go index b31eb3596..db57a5fd2 100644 --- a/suite/suite_test.go +++ b/suite/suite_test.go @@ -21,7 +21,7 @@ import ( type SuiteRequireTwice struct{ Suite } // TestSuiteRequireTwice checks for regressions of issue #149 where -// suite.requirements was not initialised in suite.SetT() +// suite.requirements was not initialized in suite.SetT() // A regression would result on these tests panicking rather than failing. func TestSuiteRequireTwice(t *testing.T) { ok := testing.RunTests( @@ -693,15 +693,15 @@ func TestSubtestPanic(t *testing.T) { assert.True(t, suite.inTearDownSuite) } -type unInitialisedSuite struct { +type unInitializedSuite struct { Suite } -// TestUnInitialisedSuites asserts the behaviour of the suite methods when the -// suite is not initialised -func TestUnInitialisedSuites(t *testing.T) { +// TestUnInitializedSuites asserts the behavior of the suite methods when the +// suite is not initialized +func TestUnInitializedSuites(t *testing.T) { t.Run("should panic on Require", func(t *testing.T) { - suite := new(unInitialisedSuite) + suite := new(unInitializedSuite) assert.Panics(t, func() { suite.Require().True(true) @@ -709,7 +709,7 @@ func TestUnInitialisedSuites(t *testing.T) { }) t.Run("should panic on Assert", func(t *testing.T) { - suite := new(unInitialisedSuite) + suite := new(unInitializedSuite) assert.Panics(t, func() { suite.Assert().True(true)