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
+1 -1
View File
@@ -20,7 +20,7 @@ func TestLiteralSaysWhichDatatypesItsTextIs(t *testing.T) {
{"-0", [datatype.Count]bool{datatype.Integer: true, datatype.Number: true, datatype.Boolean: true}},
} {
v := Literal(c.text)
for d := datatype.Integer; d <= datatype.Boolean; d++ {
for d := datatype.Integer; d < datatype.Count; d++ {
if (v.Not[d] != "") != c.not[d] {
t.Errorf("Literal(%q).Not[%s] = %q", c.text, d, v.Not[d])
}