Skip to content

Commit

Permalink
Code is ready for the chapter.
Browse files Browse the repository at this point in the history
  • Loading branch information
ardan-bkennedy committed Apr 30, 2015
1 parent 6f6d559 commit 5933773
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions chapter9/listing04/example04_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"os"

ex3 "github.com/ArdanStudios/gotraining/09-testing/01-testing/example3"
ex "github.com/goinaction/code/chapter9/listing04"
)

// ExampleLogResponse provides a basic example test example.
Expand All @@ -21,7 +21,7 @@ func ExampleLogResponse() {
Email: "[email protected]",
}

ex3.LogResponse(&u)
ex.LogResponse(&u)
// Output:
// {
// "Name": "Bill",
Expand Down
4 changes: 2 additions & 2 deletions chapter9/listing04/example04_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import (
"net/http/httptest"
"testing"

ex3 "github.com/ArdanStudios/gotraining/09-testing/01-testing/example3"
ex "github.com/goinaction/code/chapter9/listing04"
)

const succeed = "\u2713"
const failed = "\u2717"

func init() {
ex3.Routes()
ex.Routes()
}

// TestDownload tests if download web content is working.
Expand Down
5 changes: 3 additions & 2 deletions chapter9/listing05/listing05.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Package listing04 implements two functions that traverse a matrix in different ways.
package listing04
// Package listing05 implements two functions that traverse a
// matrix in different ways.
package listing05

const rows = 64

Expand Down
2 changes: 1 addition & 1 deletion chapter9/listing05/listing05_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// go test -run=XXX -bench=.

// This sample test demonstrates how to write a benchmark test.
package listing04
package listing05

import "testing"

Expand Down

0 comments on commit 5933773

Please sign in to comment.