๐๏ธ Test Arena โ
Battle-test your code! Each passing test earns XP!
โ๏ธ Current Session Stats โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ฎ FLEET SDK TEST ARENA โ
โ โ
โ Tests Passed: 0 / 25 XP Earned: 0 โ
โ Current Streak: ๐ฅ x1 Rank: ๐ฅ Novice โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ๏ธ Battle Stages โ
๐ข Stage 1: Basic Combat โ
Difficulty: Easy | XP Pool: 60
| # | Test | Status | XP |
|---|---|---|---|
| 1 | Transaction creation | โฌ | +10 |
| 2 | Insufficient funds error | โฌ | +10 |
| 3 | Minimum box value | โฌ | +10 |
| 4 | Multi-output transaction | โฌ | +15 |
| 5 | Fee calculation | โฌ | +15 |
bash
# โ๏ธ FIGHT!
pnpm test tests/basic-transfer.test.tsVictory Reward: ๐ "Transaction Initiate" Badge
๐ก Stage 2: Token Warfare โ
Difficulty: Medium | XP Pool: 135
| # | Test | Status | XP |
|---|---|---|---|
| 1 | Single token transfer | โฌ | +20 |
| 2 | Token change preservation | โฌ | +20 |
| 3 | Multiple token types | โฌ | +25 |
| 4 | NFT creation (amount=1) | โฌ | +30 |
| 5 | Token validation | โฌ | +15 |
| 6 | Metadata encoding | โฌ | +25 |
bash
# โ๏ธ FIGHT!
pnpm test tests/token-operations.test.tsVictory Reward: ๐ "Token Master" Badge
๐ Stage 3: Utility Arsenal โ
Difficulty: Medium | XP Pool: 120
| # | Test | Status | XP |
|---|---|---|---|
| 1 | ERG โ nanoERG conversion | โฌ | +10 |
| 2 | nanoERG โ ERG conversion | โฌ | +10 |
| 3 | Address validation (valid) | โฌ | +15 |
| 4 | Address validation (invalid) | โฌ | +15 |
| 5 | Token ID validation | โฌ | +15 |
| 6 | Box value calculation | โฌ | +20 |
| 7 | Fee estimation (simple) | โฌ | +15 |
| 8 | Fee estimation (complex) | โฌ | +20 |
bash
# โ๏ธ FIGHT!
pnpm test tests/utils.test.tsVictory Reward: ๐ "Utility Belt" Badge
๐ด Stage 4: Mock Chain Dungeon โ
Difficulty: BOSS | XP Pool: 205
| # | Test | Status | XP |
|---|---|---|---|
| 1 | First-fit box selection | โฌ | +25 |
| 2 | Largest-first selection | โฌ | +25 |
| 3 | UTXO tracking | โฌ | +30 |
| 4 | Double-spend prevention | โฌ | +35 |
| 5 | Height lock condition | โฌ | +40 |
| 6 | Combined AND conditions | โฌ | +50 |
bash
# โ๏ธ BOSS FIGHT!
pnpm test tests/mock-chain.test.tsVictory Reward: ๐ "Chain Simulator" Badge + ๐ Title Upgrade
๐ Victory Screen โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ โ๏ธ BATTLE COMPLETE! โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ โ
โ โ Tests Passed: โโโโโโโโโโ 25/25 โ โ
โ โ XP Earned: +520 โ โ
โ โ Streak Bonus: ๐ฅ๐ฅ๐ฅ x3.0 โ โ
โ โ Total XP: 1,560 โ โ
โ โ โ โ
โ โ ๐
NEW BADGES UNLOCKED: โ โ
โ โ โข Transaction Initiate โ โ
โ โ โข Token Master โ โ
โ โ โข Utility Belt โ โ
โ โ โข Chain Simulator โ โ
โ โ โ โ
โ โ ๐ RANK UP: Code Warrior โ Fleet Master! โ โ
โ โ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ [Continue] [View Stats] [Leaderboard] [Share Victory] โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ๐ XP System โ
Total XP Available: 520 โ
| Stage | XP | Difficulty |
|---|---|---|
| Basic Combat | 60 | ๐ข |
| Token Warfare | 135 | ๐ก |
| Utility Arsenal | 120 | ๐ |
| Mock Chain Dungeon | 205 | ๐ด |
Rank Progression โ
| Rank | XP | Title |
|---|---|---|
| ๐ฅ | 0 | Novice Developer |
| ๐ฅ | 150 | Code Warrior |
| ๐ฅ | 300 | Test Champion |
| ๐ | 450 | Fleet Master |
| ๐ | 520 | Legendary (100%) |
๐ฅ Streak Bonuses โ
| Tests | Multiplier |
|---|---|
| 3+ | x1.25 |
| 5+ | x1.5 |
| 10+ | x2.0 |
| All 25 | x3.0 |
๐ฎ Battle Commands โ
bash
# Full Arena Mode
pnpm test
# Speedrun Mode (timed)
time pnpm test
# Spectator Mode (watch)
pnpm test:watch
# Coverage Mode (completionist)
pnpm test:coverage
# Interactive UI Mode
pnpm test:ui๐ก Pro Gamer Tips โ
- Read error messages - They reveal enemy weaknesses
- Use BigInt - Always add
nsuffix:1000n - Test edge cases - Empty arrays, zero values, limits
- Check types -
numbervsbigintmatters! - Chain streak - More passes = more XP multiplier