Test Noun on a datatype no data writes, and check panics against invariant.Broken's phrase
This commit is contained in:
@@ -23,3 +23,9 @@ func TestStringNamesADatatypeNoDataWrites(t *testing.T) {
|
||||
t.Errorf("String = %q, want DataType(9)", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNounNamesADatatypeNoDataWrites(t *testing.T) {
|
||||
if got := Noun(DataType(9)); got != "DataType(9)" {
|
||||
t.Errorf("Noun = %q, want DataType(9)", got)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user