Skip to content
Snippets Groups Projects
format_test.go 290 B
package configuration

import "testing"

func TestFileFormat(t *testing.T) {

	var f Format

	for _, v := range availableFormats {
		f = v
		if f.String() == "unknown" {
			t.Error("Expected not unknown")
		}
		if f.Extension() == ".unknown" {
			t.Error("Expected not .unknown")
		}
	}

}