Intermedio
19 agosto 2026

Trova il bug: iOS

Uno snippet di codice. Trova il bug, o dimostra che non ce n'è.

swift
1import XCTest
2@testable import MyApp
3
4final class TimerTests: XCTestCase {
5    func testCountdown() {
6        let countdown = Countdown(seconds: 2)
7        countdown.start()
8        Thread.sleep(forTimeInterval: 3)
9        XCTAssertTrue(countdown.isFinished)
10    }
11}
12

Clicca sulle righe che causano il problema.

Il tuo verdetto

Un tentativo al giorno. La risposta appare subito dopo.

Mantieni la tua serie

Crea un account per conservare la tua serie e seguire i tuoi progressi.

Crea un account