mirror of
https://github.com/mappu/miqt.git
synced 2025-01-30 10:00:22 +00:00
test: add test for round-trip of zero length byte slices
This commit is contained in:
parent
e4756d1e76
commit
a4b99fcfae
@ -106,6 +106,17 @@ func testMarshalling(t *testing.T) {
|
||||
}
|
||||
})
|
||||
|
||||
t.Run("QByteArray of zero length", func(t *testing.T) {
|
||||
|
||||
input := ""
|
||||
ba := qt.QFile_EncodeName(input)
|
||||
got := qt.QFile_DecodeName(ba)
|
||||
|
||||
if input != got {
|
||||
t.Fatalf("QByteArray: expected %q, got %q", input, got)
|
||||
}
|
||||
})
|
||||
|
||||
// QMap
|
||||
t.Run("QMap", func(t *testing.T) {
|
||||
input := make(map[string]qt.QVariant)
|
||||
|
Loading…
x
Reference in New Issue
Block a user