Updating check.v1

master
Frederick F. Kautz IV 10 years ago
parent 2aa1da16d7
commit 2e857a6f94
  1. 2
      Godeps/_workspace/src/gopkg.in/check.v1/benchmark_test.go
  2. 17
      Godeps/_workspace/src/gopkg.in/check.v1/printer_test.go
  3. 4
      Godeps/_workspace/src/gopkg.in/check.v1/run_test.go

@ -3,8 +3,8 @@
package check_test
import (
"time"
. "gopkg.in/check.v1"
"time"
)
var benchmarkS = Suite(&BenchmarkS{})

@ -24,22 +24,27 @@ func printTestFunc() {
println(3) // Comment3
}
switch 5 {
case 6: println(6) // Comment6
case 6:
println(6) // Comment6
println(7)
}
switch interface{}(9).(type) {// Comment9
case int: println(10)
switch interface{}(9).(type) { // Comment9
case int:
println(10)
println(11)
}
select {
case <-(chan bool)(nil): println(14)
case <-(chan bool)(nil):
println(14)
println(15)
default: println(16)
default:
println(16)
println(17)
}
println(19,
20)
_ = func() { println(21)
_ = func() {
println(21)
println(22)
}
println(24, func() {

@ -400,7 +400,7 @@ func (s *RunS) TestStreamModeWithMiss(c *C) {
// -----------------------------------------------------------------------
// Verify that that the keep work dir request indeed does so.
type WorkDirSuite struct {}
type WorkDirSuite struct{}
func (s *WorkDirSuite) Test(c *C) {
c.MkDir()
@ -411,7 +411,7 @@ func (s *RunS) TestKeepWorkDir(c *C) {
runConf := RunConf{Output: &output, Verbose: true, KeepWorkDir: true}
result := Run(&WorkDirSuite{}, &runConf)
c.Assert(result.String(), Matches, ".*\nWORK=" + result.WorkDir)
c.Assert(result.String(), Matches, ".*\nWORK="+result.WorkDir)
stat, err := os.Stat(result.WorkDir)
c.Assert(err, IsNil)

Loading…
Cancel
Save