         self.htmlSource = try? String(contentsOf: sourceURL!, encoding: .utf8)
         
         XCTAssertNotNil(self.htmlSource)
+    }
+    
+    
+    func testAllSyntaxStyles() {
+        
+        for (name, dict) in self.styleDicts {
+            for error in SyntaxStyleValidator.validate(dict) {
+                XCTFail("\(name) \(error.errorDescription!) -> \(error.failureReason!)")
+            }
+        }
     }
     
     

//
//  ---------------------------------------------------------------------------
//
//  © 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.


class SyntaxTests: XCTestCase, SyntaxParserDelegate {
    
    var styleDicts: [String: SyntaxManager.StyleDictionary] = [:]
    var htmlStyle: SyntaxStyle?
    var htmlSource: String?
    
