pkg/fall: make Zero and Root vars not funcs (#1367)
These can be just vars. Think that was intended as well.
This commit is contained in:
parent
a19ea63d3a
commit
cced1a4c12
5 changed files with 51 additions and 52 deletions
|
@ -23,7 +23,7 @@ func TestEqual(t *testing.T) {
|
|||
|
||||
func TestZero(t *testing.T) {
|
||||
var f F
|
||||
if !f.Equal(Zero()) {
|
||||
if !f.Equal(Zero) {
|
||||
t.Errorf("F should be zero")
|
||||
}
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ func TestZero(t *testing.T) {
|
|||
func TestSetZonesFromArgs(t *testing.T) {
|
||||
var f F
|
||||
f.SetZonesFromArgs([]string{})
|
||||
if !f.Equal(Root()) {
|
||||
if !f.Equal(Root) {
|
||||
t.Errorf("F should have the root zone")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue