assert ID values in test

This commit is contained in:
Gavin Nishizawa 2022-12-05 13:46:42 -08:00
parent 861338e731
commit 2aa9e4b363
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD

View file

@ -1347,6 +1347,7 @@ y -> x.style
if len(g.Objects) != 1 {
t.Fatal(g.Objects)
}
assert.String(t, `"b\nb"`, g.Objects[0].ID)
assert.String(t, `b
b`, g.Objects[0].Attributes.Label.Value)
},
@ -1359,6 +1360,7 @@ b`, g.Objects[0].Attributes.Label.Value)
if len(g.Objects) != 1 {
t.Fatal(g.Objects)
}
assert.String(t, "b\rb", g.Objects[0].ID)
assert.String(t, "b\rb", g.Objects[0].Attributes.Label.Value)
},
},