Skip to content

test: expect the serialized form to use fully-qualified names#24

Merged
skaldarnar merged 3 commits into
developfrom
test/serialize-full-names
Feb 23, 2021
Merged

test: expect the serialized form to use fully-qualified names#24
skaldarnar merged 3 commits into
developfrom
test/serialize-full-names

Conversation

@keturn
Copy link
Copy Markdown
Contributor

@keturn keturn commented Feb 21, 2021

@keturn
Copy link
Copy Markdown
Contributor Author

keturn commented Feb 21, 2021

I do think the type handler has enough code in it to be worth testing.

Clearly there are some disadvantages to having the tests depend on the byte-for-byte result of the serialized form.

Not sure what the better way would be. It could compare PersistedData structures instead of the JSON string, but that might have the same problem if the expected PersistedData hard-codes those class references.

@skaldarnar
Copy link
Copy Markdown
Contributor

This fails because MTE is not binary compatible with MovingBlocks/Terasology#4539 (I think). I've triggered a rebuild of MTE and hope this will help (the tests run fine when testing this locally).

@skaldarnar skaldarnar merged commit be07ddd into develop Feb 23, 2021
@skaldarnar skaldarnar deleted the test/serialize-full-names branch February 23, 2021 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants