1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

migrate code for github

This commit is contained in:
Craig Peterson
2016-08-22 18:31:50 -06:00
commit ef0bbf53af
359 changed files with 157476 additions and 0 deletions

View File

@ -0,0 +1,24 @@
package route53
import "testing"
func TestUnescape(t *testing.T) {
var tests = []struct {
experiment, expected string
}{
{"foo", "foo"},
{"foo.", "foo"},
{"foo..", "foo."},
{"foo...", "foo.."},
{`\052`, "*"},
{`\052.foo..`, "*.foo."},
// {`\053.foo`, "+.foo"}, // Not implemented yet.
}
for i, test := range tests {
actual := unescape(&test.experiment)
if test.expected != actual {
t.Errorf("%d: Expected %s, got %s", i, test.expected, actual)
}
}
}