Codebase list golang-github-matryer-is / a5fd33a
Fix some mistakes in the documentation. * Fix the indentation in the example for I.Fail() (replace spaces with tabs). * Fix some spelling mistakes (fimilar, around) * Fix a call to is.OK that should point to is.True instead. mikolaj holysz 5 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
106106 //
107107 // func Test(t *testing.T) {
108108 // is := is.New(t)
109 // is.Fail() // TODO: write this test
109 // is.Fail() // TODO: write this test
110110 // }
111111 //
112112 // In relaxed mode, execution will continue after a call to
167167 }
168168
169169 // New is a method wrapper around the New function.
170 // It allows you to write subtests using a fimilar
170 // It allows you to write subtests using a similar
171171 // pattern:
172172 //
173173 // func Test(t *testing.T) {
181181 return New(t)
182182 }
183183
184 // NewRelaxed is a method wrapper aorund the NewRelaxed
185 // method. It allows you to write subtests using a fimilar
184 // NewRelaxed is a method wrapper around the NewRelaxed
185 // method. It allows you to write subtests using a similar
186186 // pattern:
187187 //
188188 // func Test(t *testing.T) {
209209 // is := is.New(t)
210210 // val, err := getVal()
211211 // is.NoErr(err) // getVal error
212 // is.OK(len(val) > 10) // val cannot be short
212 // is.True(len(val) > 10) // val cannot be short
213213 // }
214214 //
215215 // Will output: