Skip to content

Commit 85d8bb6

Browse files
committed
fix typos in comments, tests and github templates
1 parent e2741fa commit 85d8bb6

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Diff for: .github/ISSUE_TEMPLATE/bug_report.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ assignees: ''
1414
<!-- A detailed description of the bug -->
1515

1616
## Step To Reproduce
17-
<!-- Steps or code snippet to reproduce the behaviour -->
17+
<!-- Steps or code snippet to reproduce the behavior -->
1818

19-
## Expected behaviour
19+
## Expected behavior
2020
<!-- A clear and concise description of what you expected to happen -->
2121

22-
## Actual behaviour
22+
## Actual behavior
2323
<!-- What testify does -->

Diff for: assert/assertions_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ func TestNotEqualValues(t *testing.T) {
880880
{new(AssertionTesterConformingObject), new(AssertionTesterConformingObject), false},
881881
{&struct{}{}, &struct{}{}, false},
882882

883-
// Different behaviour from NotEqual()
883+
// Different behavior from NotEqual()
884884
{func() int { return 23 }, func() int { return 24 }, true},
885885
{int(10), int(11), true},
886886
{int(10), uint(10), false},

Diff for: suite/suite_test.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
type SuiteRequireTwice struct{ Suite }
2222

2323
// TestSuiteRequireTwice checks for regressions of issue #149 where
24-
// suite.requirements was not initialised in suite.SetT()
24+
// suite.requirements was not initialized in suite.SetT()
2525
// A regression would result on these tests panicking rather than failing.
2626
func TestSuiteRequireTwice(t *testing.T) {
2727
ok := testing.RunTests(
@@ -693,23 +693,23 @@ func TestSubtestPanic(t *testing.T) {
693693
assert.True(t, suite.inTearDownSuite)
694694
}
695695

696-
type unInitialisedSuite struct {
696+
type unInitializedSuite struct {
697697
Suite
698698
}
699699

700-
// TestUnInitialisedSuites asserts the behaviour of the suite methods when the
701-
// suite is not initialised
702-
func TestUnInitialisedSuites(t *testing.T) {
700+
// TestUnInitializedSuites asserts the behavior of the suite methods when the
701+
// suite is not initialized
702+
func TestUnInitializedSuites(t *testing.T) {
703703
t.Run("should panic on Require", func(t *testing.T) {
704-
suite := new(unInitialisedSuite)
704+
suite := new(unInitializedSuite)
705705

706706
assert.Panics(t, func() {
707707
suite.Require().True(true)
708708
})
709709
})
710710

711711
t.Run("should panic on Assert", func(t *testing.T) {
712-
suite := new(unInitialisedSuite)
712+
suite := new(unInitializedSuite)
713713

714714
assert.Panics(t, func() {
715715
suite.Assert().True(true)

0 commit comments

Comments
 (0)