mirror of https://github.com/stretchr/testify.git
fix typos in comments, tests and github templates
parent
e2741fa4e9
commit
85d8bb6eea
|
@ -14,10 +14,10 @@ assignees: ''
|
||||||
<!-- A detailed description of the bug -->
|
<!-- A detailed description of the bug -->
|
||||||
|
|
||||||
## Step To Reproduce
|
## 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 -->
|
<!-- A clear and concise description of what you expected to happen -->
|
||||||
|
|
||||||
## Actual behaviour
|
## Actual behavior
|
||||||
<!-- What testify does -->
|
<!-- What testify does -->
|
||||||
|
|
|
@ -880,7 +880,7 @@ func TestNotEqualValues(t *testing.T) {
|
||||||
{new(AssertionTesterConformingObject), new(AssertionTesterConformingObject), false},
|
{new(AssertionTesterConformingObject), new(AssertionTesterConformingObject), false},
|
||||||
{&struct{}{}, &struct{}{}, false},
|
{&struct{}{}, &struct{}{}, false},
|
||||||
|
|
||||||
// Different behaviour from NotEqual()
|
// Different behavior from NotEqual()
|
||||||
{func() int { return 23 }, func() int { return 24 }, true},
|
{func() int { return 23 }, func() int { return 24 }, true},
|
||||||
{int(10), int(11), true},
|
{int(10), int(11), true},
|
||||||
{int(10), uint(10), false},
|
{int(10), uint(10), false},
|
||||||
|
|
|
@ -21,7 +21,7 @@ import (
|
||||||
type SuiteRequireTwice struct{ Suite }
|
type SuiteRequireTwice struct{ Suite }
|
||||||
|
|
||||||
// TestSuiteRequireTwice checks for regressions of issue #149 where
|
// 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.
|
// A regression would result on these tests panicking rather than failing.
|
||||||
func TestSuiteRequireTwice(t *testing.T) {
|
func TestSuiteRequireTwice(t *testing.T) {
|
||||||
ok := testing.RunTests(
|
ok := testing.RunTests(
|
||||||
|
@ -693,15 +693,15 @@ func TestSubtestPanic(t *testing.T) {
|
||||||
assert.True(t, suite.inTearDownSuite)
|
assert.True(t, suite.inTearDownSuite)
|
||||||
}
|
}
|
||||||
|
|
||||||
type unInitialisedSuite struct {
|
type unInitializedSuite struct {
|
||||||
Suite
|
Suite
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestUnInitialisedSuites asserts the behaviour of the suite methods when the
|
// TestUnInitializedSuites asserts the behavior of the suite methods when the
|
||||||
// suite is not initialised
|
// suite is not initialized
|
||||||
func TestUnInitialisedSuites(t *testing.T) {
|
func TestUnInitializedSuites(t *testing.T) {
|
||||||
t.Run("should panic on Require", func(t *testing.T) {
|
t.Run("should panic on Require", func(t *testing.T) {
|
||||||
suite := new(unInitialisedSuite)
|
suite := new(unInitializedSuite)
|
||||||
|
|
||||||
assert.Panics(t, func() {
|
assert.Panics(t, func() {
|
||||||
suite.Require().True(true)
|
suite.Require().True(true)
|
||||||
|
@ -709,7 +709,7 @@ func TestUnInitialisedSuites(t *testing.T) {
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("should panic on Assert", func(t *testing.T) {
|
t.Run("should panic on Assert", func(t *testing.T) {
|
||||||
suite := new(unInitialisedSuite)
|
suite := new(unInitializedSuite)
|
||||||
|
|
||||||
assert.Panics(t, func() {
|
assert.Panics(t, func() {
|
||||||
suite.Assert().True(true)
|
suite.Assert().True(true)
|
||||||
|
|
Loading…
Reference in New Issue