Skip to content

Commit

Permalink
fix typos in comments, tests and github templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoVeille committed Feb 24, 2024
1 parent e2741fa commit 85d8bb6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ assignees: ''
<!-- A detailed description of the bug -->

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

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

## Actual behaviour
## Actual behavior
<!-- What testify does -->
2 changes: 1 addition & 1 deletion assert/assertions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
14 changes: 7 additions & 7 deletions suite/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -693,23 +693,23 @@ 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)
})
})

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

assert.Panics(t, func() {
suite.Assert().True(true)
Expand Down

0 comments on commit 85d8bb6

Please sign in to comment.