6 {"Version":"v1.1.0","Name":"cfd7145f43f92a8d56b4a3dd603795a3291381a9","Short":"cfd7145f43f9","Time":"2018-02-14T00:46:44Z"}
10 // Copyright 2018 The Go Authors. All rights reserved.
11 // Use of this source code is governed by a BSD-style
12 // license that can be found in the LICENSE file.
14 // Package quote collects pithy sayings.
15 package quote // import "rsc.io/quote"
17 // Hello returns a greeting.
19 return "Hello, world."
22 // Glass returns a useful phrase for world travelers.
24 // See http://www.oocities.org/nodotus/hbglass.html.
25 return "I can eat glass and it doesn't hurt me."
28 // Copyright 2018 The Go Authors. All rights reserved.
29 // Use of this source code is governed by a BSD-style
30 // license that can be found in the LICENSE file.
36 func TestHello(t *testing.T) {
37 hello := "Hello, world."
38 if out := Hello(); out != hello {
39 t.Errorf("Hello() = %q, want %q", out, hello)
43 func TestGlass(t *testing.T) {
44 glass := "I can eat glass and it doesn't hurt me."
45 if out := Glass(); out != glass {
46 t.Errorf("Glass() = %q, want %q", out, glass)