diff options
| author | Ondřej Surý <ondrej@sury.org> | 2012-02-29 11:23:13 +0100 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2012-02-29 11:23:13 +0100 |
| commit | b6d7097a0d6072199f2cd74d67404890697cf78a (patch) | |
| tree | a2193c528a79fd5606507568859ee5067c6b86e4 /src/cmd/fix/url2_test.go | |
| parent | 4cecda6c347bd6902b960c6a35a967add7070b0d (diff) | |
| download | golang-b6d7097a0d6072199f2cd74d67404890697cf78a.tar.gz | |
Imported Upstream version 2012.02.22upstream-weekly/2012.02.22
Diffstat (limited to 'src/cmd/fix/url2_test.go')
| -rw-r--r-- | src/cmd/fix/url2_test.go | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/cmd/fix/url2_test.go b/src/cmd/fix/url2_test.go new file mode 100644 index 000000000..c68dd88f1 --- /dev/null +++ b/src/cmd/fix/url2_test.go @@ -0,0 +1,31 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package main + +func init() { + addTestCases(url2Tests, url2) +} + +var url2Tests = []testCase{ + { + Name: "url2.0", + In: `package main + +import "net/url" + +func f() { + url.ParseWithReference("foo") +} +`, + Out: `package main + +import "net/url" + +func f() { + url.ParseWithFragment("foo") +} +`, + }, +} |
