Merge pull request #226 from spraveen1112/master

In README documentation of suite package #225
pull/228/head
Ernesto Jiménez 2015-11-01 12:11:48 +00:00
commit 1467a551a0
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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