From be704a5c57bbe6a1169530127c5e4d91e026162a Mon Sep 17 00:00:00 2001 From: praveen shukla Date: Tue, 20 Oct 2015 10:44:48 +0530 Subject: [PATCH 1/2] corrected the README documentation of suite package --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f57561..07fb92a 100644 --- a/README.md +++ b/README.md @@ -212,7 +212,7 @@ func (suite *ExampleTestSuite) SetupTest() { // All methods that begin with "Test" are run as tests within a // suite. func (suite *ExampleTestSuite) TestExample() { - assert.Equal(suite.T(), suite.VariableThatShouldStartAtFive, 5) + assert.Equal(suite.T(), 5, suite.VariableThatShouldStartAtFive) } // In order for 'go test' to run this suite, we need to create From 6e25351910236beca3ecd676110842cec8ad7e65 Mon Sep 17 00:00:00 2001 From: praveen shukla Date: Tue, 20 Oct 2015 10:51:47 +0530 Subject: [PATCH 2/2] modified the go.doc in suite package. --- suite/doc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/suite/doc.go b/suite/doc.go index 3731eaa..81d838d 100644 --- a/suite/doc.go +++ b/suite/doc.go @@ -53,8 +53,8 @@ // // All methods that begin with "Test" are run as tests within a // // suite. // func (suite *ExampleTestSuite) TestExample() { -// assert.Equal(suite.T(), suite.VariableThatShouldStartAtFive, 5) -// suite.Equal(suite.VariableThatShouldStartAtFive, 5) +// assert.Equal(suite.T(), 5, suite.VariableThatShouldStartAtFive) +// suite.Equal(5, suite.VariableThatShouldStartAtFive) // } // // // In order for 'go test' to run this suite, we need to create