in this solution: https://exercism.org/tracks/swift/exercises/wings-quest/solutions/PedroJoaquim97 in the win function, if I do powerUpActive = true e touchingEagle = true:
!powerUpActive && touchingEagle
!true && true => false && true => false
negating: !false => true
doing !powerUpActive && !touchingEagle like the user:
!powerUpActive && !touchingEagle
!true && !true => false && false => false
IsaacG
September 3, 2026, 11:15pm
2
Yes. The solution could be better. If the user wanted to improve their solution, they could request mentoring and the mentor would hopefully point that out.
@IsaacG the problem is that it passed out the tests
IsaacG
September 4, 2026, 12:30am
4
Okay. Are you suggesting the tests should be improved in some way? What would you suggest changing?
@IsaacG to do a test that dont pass this specific case?
IsaacG
September 4, 2026, 2:42pm
6
That sounds reasonable. Is there a specific test you would like to propose here?
@IsaacG
#expect(win(hasPickedUpAllSeeds: true, powerUpActive: true, touchingEagle: true))
IsaacG
September 6, 2026, 11:23am
8
+cc @Meatball as the Swift maintainer to evaluate if this test should be added.