summaryrefslogtreecommitdiff
path: root/libgo/go/exp/ssh/common_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/exp/ssh/common_test.go')
-rw-r--r--libgo/go/exp/ssh/common_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/libgo/go/exp/ssh/common_test.go b/libgo/go/exp/ssh/common_test.go
index 2f4448a1bd4..058fb04fe1b 100644
--- a/libgo/go/exp/ssh/common_test.go
+++ b/libgo/go/exp/ssh/common_test.go
@@ -8,15 +8,15 @@ import (
"testing"
)
-var strings = map[string]string{
- "\x20\x0d\x0a": "\x20\x0d\x0a",
- "flibble": "flibble",
- "new\x20line": "new\x20line",
- "123456\x07789": "123456 789",
- "\t\t\x10\r\n": "\t\t \r\n",
-}
-
func TestSafeString(t *testing.T) {
+ strings := map[string]string{
+ "\x20\x0d\x0a": "\x20\x0d\x0a",
+ "flibble": "flibble",
+ "new\x20line": "new\x20line",
+ "123456\x07789": "123456 789",
+ "\t\t\x10\r\n": "\t\t \r\n",
+ }
+
for s, expected := range strings {
actual := safeString(s)
if expected != actual {