codex-lv3-may-2025

Level Navigation: 1 (2ℹ️) 3 4 5 6 (7ℹ️) (8ℹ️) (9ℹ️) 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 (37ℹ️) 38⚡ 39⚡ 40⚡ 41⚡ 42 43⚡ 44⚡ 45 46 (47ℹ️)

Level 22: Practice, Key Takeaways, and Next Steps

Practice: Your Turn!

Now it’s your turn to add some tests! Try adding tests for these scenarios:

For the add function:

  1. Test with two negative numbers - What happens when you add -1 and -2?
  2. Test with very small decimal numbers - Try adding 0.001 and 0.002
  3. Test with one number being zero - What about add(0, 10)?

For the toSnakeCase function:

  1. Test with text that has no spaces - What happens with 'HELLOWORLD'?
  2. Test with text that is only spaces - Try ' ' (three spaces)
  3. Test with mixed case - What about 'HeLLo WoRLd'?

Challenge: Write each test, run it, and see if it passes. If it fails, think about why!

Key Takeaways

Next Steps

Resources