Skip to content

Commit

Permalink
Merge pull request #10223 from tianon/go1.3-TestBuildWithTabs
Browse files Browse the repository at this point in the history
Update TestBuildWithTabs to allow for the "\t"-equivalent "\u0009" (for Go 1.3 support)
  • Loading branch information
Jessie Frazelle committed Jan 20, 2015
2 parents 092d522 + 1423694 commit 9305020
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions integration-cli/docker_cli_build_test.go
Expand Up @@ -4302,9 +4302,10 @@ func TestBuildWithTabs(t *testing.T) {
if err != nil {
t.Fatal(err)
}
expected := `["/bin/sh","-c","echo\tone\t\ttwo"]`
if res != expected {
t.Fatalf("Missing tabs.\nGot:%s\nExp:%s", res, expected)
expected1 := `["/bin/sh","-c","echo\tone\t\ttwo"]`
expected2 := `["/bin/sh","-c","echo\u0009one\u0009\u0009two"]` // syntactically equivalent, and what Go 1.3 generates
if res != expected1 && res != expected2 {
t.Fatalf("Missing tabs.\nGot: %s\nExp: %s or %s", res, expected1, expected2)
}
logDone("build - with tabs")
}
Expand Down

0 comments on commit 9305020

Please sign in to comment.