Skip to content

Commit fbbbf62

Browse files
Code changes for language
1 parent 854690b commit fbbbf62

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

chapter9/listing02/listing02_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func TestDownload(t *testing.T) {
2121
http.StatusOK,
2222
},
2323
{
24-
"http://rss.cnn.com/rss/cnn_topstorie.rss",
24+
"http://rss.cnn.com/rss/cnn_topstbadurl.rss",
2525
http.StatusNotFound,
2626
},
2727
}

chapter9/listing04/handlers/handlers_example_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Sample test to show how to write a basic example test.
1+
// Sample test to show how to write a basic example.
22
package handlers_test
33

44
import (
@@ -9,7 +9,7 @@ import (
99
"net/http/httptest"
1010
)
1111

12-
// ExampleSendJSON provides a basic example test example.
12+
// ExampleSendJSON provides a basic example.
1313
func ExampleSendJSON() {
1414
r, _ := http.NewRequest("GET", "/sendjson", nil)
1515
w := httptest.NewRecorder()

chapter9/listing05/listing05_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Benchmark tests contains three benchmark tests for converting
1+
// Sample benchmarks to test which function is better for converting
22
// an integer into a string. First using the fmt.Sprintf function,
33
// then the strconv.FormatInt function and then strconv.Itoa.
44
package listing05_test

0 commit comments

Comments
 (0)