← HALL
Strict Equality Type Coercion
EASY
+100 XP REWARD
⏱ Limit: 5m
// MISSION BRIEFING //
ANOMALY DESCRIPTION
A boolean status check function is inadvertently accepting string falsy values due to loose type comparison. Refactor the equality check so that only strict boolean true returns valid.
SPECIFICATION SUITE
Direct boolean true
Input: true
Expected: GRANTED
Falsy integer 0
Expected: DENIED
Truth-like string 1
[PROTECTED TEST]
Evaluation logic hidden to prevent hardcoding.
RADAR HINTS
Hint #1 (Click to decrypt)
Replace loose comparison with strict identity comparison.
STATIC ANALYSIS CONSOLE
Ready for dispatch
Press "VERIFY & SUBMIT" or Ctrl+Enter to evaluate your patch.