Mercurial > projects > orange
comparison tests/Serializer.d @ 36:c523d436052f experimental
Fixed an D1 error in the unit test.
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Wed, 03 Aug 2011 21:45:56 +0200 |
parents | 511d1ef4e299 |
children | 9443bcddc699 |
comparison
equal
deleted
inserted
replaced
35:511d1ef4e299 | 36:c523d436052f |
---|---|
317 serializer.serialize(c); | 317 serializer.serialize(c); |
318 | 318 |
319 assert(archive.data().containsDefaultXmlContent()); | 319 assert(archive.data().containsDefaultXmlContent()); |
320 assert(archive.data().containsXmlTag("object", `runtimeType="tests.Serializer.C" type="C" key="0" id="0"`)); | 320 assert(archive.data().containsXmlTag("object", `runtimeType="tests.Serializer.C" type="C" key="0" id="0"`)); |
321 | 321 |
322 version (Tango) auto type = "char"; | 322 version (Tango) string type = "char"; |
323 else auto type = "immutable(char)"; | 323 else string type = "immutable(char)"; |
324 | 324 |
325 assert(archive.data().containsXmlTag("string", `type="` ~ type ~ `" length="3" key="str" id="1"`, "foo")); | 325 assert(archive.data().containsXmlTag("string", `type="` ~ type ~ `" length="3" key="str" id="1"`, "foo")); |
326 | 326 |
327 version (Tango) type = "wchar"; | 327 version (Tango) type = "wchar"; |
328 else type = "immutable(wchar)"; | 328 else type = "immutable(wchar)"; |