Test Noun on a datatype no data writes, and check panics against invariant.Broken's phrase

This commit is contained in:
2026-10-05 15:48:34 +02:00
committed by Lillem4n
parent dd2fe61b13
commit a229ae90a2
4 changed files with 14 additions and 5 deletions
+6
View File
@@ -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)
}
}