         
         let string = "abc\\ \n ¥ \n ~"
         let encoding = String.Encoding(rawValue: CFStringConvertEncodingToNSStringEncoding(CFStringEncoding(CFStringEncodings.shiftJIS.rawValue)))
-        let incompatibles = string.scanIncompatibleCharacters(for: encoding)!
+        let incompatibles = string.scanIncompatibleCharacters(for: encoding)
         
         XCTAssertEqual(incompatibles.count, 2)
         

        XCTAssertEqual(tilde.location, 11)
        XCTAssertEqual(tilde.lineNumber, 3)
    }

}

 
 ------------------------------------------------------------------------------
 
 © 2016-2018 1024jp
 
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
