mirror of
https://github.com/github/semantic.git
synced 2024-11-29 11:02:26 +03:00
5dd80cb0ce
This enables diffs to operate on categorized Terms.
20 lines
443 B
Swift
20 lines
443 B
Swift
final class SwiftTests: XCTestCase {
|
|
func testParsingAFile() {
|
|
let path = __FILE__
|
|
guard let file = File(path: path) else {
|
|
XCTFail("Could not make a File from \(__FILE__)")
|
|
return
|
|
}
|
|
|
|
let structure = Structure(file: file)
|
|
let dictionary = toAnyObject(structure.dictionary)
|
|
|
|
// print(JSON(object: dictionary).map { Term<String>(path: path, JSON: $0) })
|
|
}
|
|
}
|
|
|
|
|
|
@testable import Doubt
|
|
import SourceKittenFramework
|
|
import XCTest
|