File: version_test.go

package info (click to toggle)
golang-github-miekg-dns 1.0.4%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 900 kB
  • sloc: makefile: 4
file content (10 lines) | stat: -rw-r--r-- 180 bytes parent folder | download
1
2
3
4
5
6
7
8
9
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)
	}
}