mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 13:53:57 -07:00
eslint --no-config-lookup --fix --rule '"prefer-const": 1' \
binaries/data/mods/public/globalscripts
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
9 lines
247 B
JavaScript
9 lines
247 B
JavaScript
function test_serialization()
|
|
{
|
|
const test_val = new Vector2D(1, 2);
|
|
const rt = Engine.SerializationRoundTrip(test_val);
|
|
TS_ASSERT_EQUALS(test_val.constructor, rt.constructor);
|
|
TS_ASSERT_EQUALS(rt.add(test_val).x, 2);
|
|
}
|
|
|
|
test_serialization();
|