From c77b5552997081a3d5f6d40b19069ac81a091362 Mon Sep 17 00:00:00 2001 From: 0xicosahedron Date: Sun, 24 Dec 2023 15:41:35 +0530 Subject: [PATCH] fix tests --- crates/dojo-lang/src/plugin_test_data/print | 46 --------------------- 1 file changed, 46 deletions(-) diff --git a/crates/dojo-lang/src/plugin_test_data/print b/crates/dojo-lang/src/plugin_test_data/print index 0e47bfd03d..7fb28c7451 100644 --- a/crates/dojo-lang/src/plugin_test_data/print +++ b/crates/dojo-lang/src/plugin_test_data/print @@ -52,8 +52,6 @@ struct Position { y: felt252 } -<<<<<<< HEAD -======= #[cfg(test)] impl PositionPrintImpl of core::debug::PrintTrait { fn print(self: Position) { @@ -65,7 +63,6 @@ impl PositionPrintImpl of core::debug::PrintTrait { core::debug::PrintTrait::print(self.y); } } ->>>>>>> main #[derive(Print)] struct Roles { @@ -143,46 +140,3 @@ enum Enemy { Bot: felt252, OtherPlayer: ContractAddress, } - -impl PositionCopy of core::traits::Copy::; -impl PositionDrop of core::traits::Drop::; -impl PositionSerde of core::serde::Serde:: { - fn serialize(self: @Position, ref output: core::array::Array) { - core::serde::Serde::serialize(self.id, ref output); - core::serde::Serde::serialize(self.x, ref output); - core::serde::Serde::serialize(self.y, ref output) - } - fn deserialize(ref serialized: core::array::Span) -> core::option::Option { - core::option::Option::Some(Position { - id: core::serde::Serde::deserialize(ref serialized)?, - x: core::serde::Serde::deserialize(ref serialized)?, - y: core::serde::Serde::deserialize(ref serialized)?, - }) - } -} -impl RolesSerde of core::serde::Serde:: { - fn serialize(self: @Roles, ref output: core::array::Array) { - core::serde::Serde::serialize(self.role_ids, ref output) - } - fn deserialize(ref serialized: core::array::Span) -> core::option::Option { - core::option::Option::Some(Roles { - role_ids: core::serde::Serde::deserialize(ref serialized)?, - }) - } -} -impl PlayerCopy of core::traits::Copy::; -impl PlayerDrop of core::traits::Drop::; -impl PlayerSerde of core::serde::Serde:: { - fn serialize(self: @Player, ref output: core::array::Array) { - core::serde::Serde::serialize(self.game, ref output); - core::serde::Serde::serialize(self.player, ref output); - core::serde::Serde::serialize(self.name, ref output) - } - fn deserialize(ref serialized: core::array::Span) -> core::option::Option { - core::option::Option::Some(Player { - game: core::serde::Serde::deserialize(ref serialized)?, - player: core::serde::Serde::deserialize(ref serialized)?, - name: core::serde::Serde::deserialize(ref serialized)?, - }) - } -} \ No newline at end of file