summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/miekg/dns/version_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/miekg/dns/version_test.go')
-rw-r--r--vendor/github.com/miekg/dns/version_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/miekg/dns/version_test.go b/vendor/github.com/miekg/dns/version_test.go
new file mode 100644
index 000000000..61c404848
--- /dev/null
+++ b/vendor/github.com/miekg/dns/version_test.go
@@ -0,0 +1,10 @@
+package dns
+
+import "testing"
+
+func TestVersion(t *testing.T) {
+ v := V{1, 0, 0}
+ if x := v.String(); x != "1.0.0" {
+ t.Fatalf("Failed to convert version %v, got: %s", v, x)
+ }
+}