Skip to content

Commit

Permalink
Merge pull request #1285 from dlang/fix_latest_dmd
Browse files Browse the repository at this point in the history
[trivial] Fix serialization unit test for DMD 2.077.0.
merged-on-behalf-of: Sönke Ludwig <s-ludwig@users.noreply.github.com>
  • Loading branch information
dlang-bot authored Nov 6, 2017
2 parents f5ef973 + 4552fbd commit bf38ca2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/dub/internal/vibecompat/data/serialization.d
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,8 @@ unittest { // basic serialization behavior
test(12.0f, "V(f)(12)");
assert(serialize!TestSerializer(null) == "null");
test(["hello", "world"], "A(AAya)[2][AE(Aya,0)(V(Aya)(hello))AE(Aya,0)AE(Aya,1)(V(Aya)(world))AE(Aya,1)]A(AAya)");
test(["hello": "world"], "D(HAyaAya){DE(Aya,hello)(V(Aya)(world))DE(Aya,hello)}D(HAyaAya)");
string mangleOfAA = (string[string]).mangleof;
test(["hello": "world"], "D(" ~ mangleOfAA ~ "){DE(Aya,hello)(V(Aya)(world))DE(Aya,hello)}D(" ~ mangleOfAA ~ ")");
test(cast(int*)null, "null");
int i = 42;
test(&i, "V(i)(42)");
Expand Down

0 comments on commit bf38ca2

Please sign in to comment.