     }
 
     func testCorrectPunctuation() {
-        var subtitleConverter = try! SubtitleConverter(subtitles: "01:12:33:Ugly ?! , punctuation .")
+        let subtitleConverter = try! SubtitleConverter(subtitles: "01:12:33:Ugly ?! , punctuation .")
         subtitleConverter.correctPunctuation = true
 
         let convertedSubtitles = try! subtitleConverter.convert(to: .tmplayer)

    }

    func testMergeAdjacentWhitespaces() {
        var subtitleConverter = try! SubtitleConverter(subtitles: "01:12:33:Text  with   ugly spaces.")
        subtitleConverter.mergeAdjacentWhitespaces = true

        let convertedSubtitles = try! subtitleConverter.convert(to: .tmplayer)


    func testOffset() {
        // Positive offset.
        let subtitleConverter = try! SubtitleConverter(subtitles: "01:01:01:Text.")
        subtitleConverter.frameRate = 1.0
        subtitleConverter.offset = 1000 // 1 second
        XCTAssertEqual(try! subtitleConverter.convert(to: .mpl2), "[36620][36670]Text.")
