     func testCharacterLiteral() {
         
         let java = LanguageDefinition<()>.javaStyle
-        let characterLiteral = GenericTokenParser(languageDefinition: java).characterLiteral
-        
-        // Test for success.
-        let matching = ["'a'", "'\\97'", "'\\x61'", "'\\o141'", "'\\n'", "'\\CR'", "'\\^@'", "'\\^A'"]
-        let expected: [Character] = ["a", "a", "a", "a", "\n", "\r", "\0", "\u{0001}"]
+        let characterLiteral =
+            GenericTokenParser(languageDefinition: java).characterLiteral
+        
+        // Test for success.
+        let matching = [
+            "'a'", "'\\97'", "'\\x61'", "'\\o141'", "'\\n'", "'\\CR'", "'\\^@'",
+            "'\\^A'"
+        ]
+        let expected: [Character] = [
+            "a", "a", "a", "a", "\n", "\r", "\0", "\u{0001}"
+        ]
         var index = 0
         
-        let errorMessage = "GenericTokenParser.characterLiteral did not succeed."
-        
-        testStringParserSuccess(characterLiteral, inputs: matching) { input, result in
+        let errorMessage =
+            "GenericTokenParser.characterLiteral did not succeed."
+        
+        testStringParserSuccess(characterLiteral, inputs: matching)
+        { input, result in
             
             defer { index += 1 }
-            XCTAssertEqual(expected[index], result, self.formatErrorMessage(errorMessage, input: input, result: result))
-            
-        }
-        
-        // Test when not matching.
-        let notMatching = ["'a", "'\\97", "'\\x61", "'\\o141", "'\\x'", "'\\ZZ'", "'\\^a'", "'\\'", "'\\xFFFFFFFFFFFFFFF'"]
-        let shouldFailMessage = "GenericTokenParser.characterLiteral should have failed."
-        
-        testStringParserFailure(characterLiteral, inputs: notMatching) { input, result in
-            
-            XCTFail(self.formatErrorMessage(shouldFailMessage, input: input, result: result))
+            XCTAssertEqual(
+                expected[index],
+                result,
+                self.formatErrorMessage(
+                    errorMessage,
+                    input: input,
+                    result: result
+                )
+            )
+            
+        }
+        
+        // Test when not matching.
+        let notMatching = [
+            "'a", "'\\97", "'\\x61", "'\\o141", "'\\x'", "'\\ZZ'", "'\\^a'",
+            "'\\'", "'\\xFFFFFFFFFFFFFFF'"
+        ]
+        
+        let shouldFailMessage =
+            "GenericTokenParser.characterLiteral should have failed."
+        
+        testStringParserFailure(characterLiteral, inputs: notMatching)
+        { input, result in
+            
+            XCTFail(
+                self.formatErrorMessage(
+                    shouldFailMessage,
+                    input: input,
+                    result: result
+                )
+            )
             
         }
         

        // Test when not matching.
        let notMatching = matching.map { $0 + ">" }
        let notMatchingAssociation = zip(reservedOperators, notMatching)
        let shouldFailMessage = "GenericTokenParser.reservedOperator should have failed."
        
        for (parser, noMatch) in notMatchingAssociation {
            
            testStringParserFailure(parser, inputs: [noMatch]) { input, result in
                
                XCTFail(self.formatErrorMessage(shouldFailMessage, input: input, result: result))
                
            }
            

    func testLegalOperator() {
        
        let swift = LanguageDefinition<()>.swift
        let legalOperator =
            GenericTokenParser(languageDefinition: swift).legalOperator
        
        // Test for success.
        let matching = [
            "/>", "=>", "-<", "+", "!>", "*", "%>", "<>", "><", "&>", "|>",
            "^>", "?>", "~>"
        ]
        
        let errorMessage = "GenericTokenParser.legalOperator did not succeed."
        
        testStringParserSuccess(legalOperator, inputs: matching)
        {input, result in
            
            XCTAssertEqual(
                input,
                result,
                self.formatErrorMessage(
                    errorMessage,
                    input: input,
                    result: result
                )
            )
            
        }
        
        // Test when not matching.
        let notMatching = swift.reservedOperators
        let shouldFailMessage =
            "GenericTokenParser.legalOperator should have failed."
        
        testStringParserFailure(legalOperator, inputs: notMatching)
        { input, result in
            
            XCTFail(
                self.formatErrorMessage(
                    shouldFailMessage,
                    input: input,
                    result: result
                )
            )
            
        }
        
