@@ -146,7 +146,6 @@ contract DuelGameTest is TestBase {
146146 assertEq (defenderLoadout.playerId, PLAYER_TWO_ID, "Defender loadout incorrect " );
147147 }
148148
149-
150149 function testCompleteDuelWorkflow () public {
151150 // Complete end-to-end duel workflow
152151 vm.startPrank (PLAYER_ONE);
@@ -197,7 +196,6 @@ contract DuelGameTest is TestBase {
197196 vm.stopPrank ();
198197 }
199198
200-
201199 function test_RevertWhen_WrongDefenderAccepts () public {
202200 // First create a valid challenge
203201 vm.startPrank (PLAYER_ONE);
@@ -268,7 +266,9 @@ contract DuelGameTest is TestBase {
268266 assertFalse (game.isChallengeActive (challengeId2), "Challenge should not be active after acceptance " );
269267 assertTrue (game.isChallengePending (challengeId2), "Challenge should be pending after acceptance " );
270268 (,,,,, DuelGame.ChallengeState acceptedState ) = game.challenges (challengeId2);
271- assertFalse (acceptedState == DuelGame.ChallengeState.COMPLETED, "Challenge should not be completed after acceptance " );
269+ assertFalse (
270+ acceptedState == DuelGame.ChallengeState.COMPLETED, "Challenge should not be completed after acceptance "
271+ );
272272
273273 // 4. First challenge should still be active (no expiry)
274274 assertTrue (game.isChallengeActive (challengeId), "Challenge should remain active (no expiry) " );
@@ -280,7 +280,9 @@ contract DuelGameTest is TestBase {
280280 assertFalse (game.isChallengeActive (challengeId2), "Challenge should not be active after completion " );
281281 assertFalse (game.isChallengePending (challengeId2), "Challenge should not be pending after completion " );
282282 (,,,,, DuelGame.ChallengeState fulfilledState ) = game.challenges (challengeId2);
283- assertTrue (fulfilledState == DuelGame.ChallengeState.COMPLETED, "Challenge should be completed after fulfillment " );
283+ assertTrue (
284+ fulfilledState == DuelGame.ChallengeState.COMPLETED, "Challenge should be completed after fulfillment "
285+ );
284286 }
285287
286288 function testDuelsDoNotUpdateWinLossRecords () public {
@@ -356,8 +358,7 @@ contract DuelGameTest is TestBase {
356358 vm.stopPrank ();
357359
358360 // Get current challenge state
359- (,,,,, DuelGame.ChallengeState state ) =
360- game.challenges (challengeId);
361+ (,,,,, DuelGame.ChallengeState state ) = game.challenges (challengeId);
361362 console2.log ("Initial state: " , uint256 (state));
362363 console2.log ("Current block: " , block .number );
363364 console2.log ("Current timestamp: " , block .timestamp );
@@ -587,7 +588,9 @@ contract DuelGameTest is TestBase {
587588
588589 // Challenge completed successfully with override loadouts
589590 (,,,,, DuelGame.ChallengeState overrideState ) = game.challenges (challengeId);
590- assertTrue (overrideState == DuelGame.ChallengeState.COMPLETED, "Challenge should complete with override loadouts " );
591+ assertTrue (
592+ overrideState == DuelGame.ChallengeState.COMPLETED, "Challenge should complete with override loadouts "
593+ );
591594 }
592595
593596 function testDuelFeeAmountConfiguration () public {
0 commit comments