36 lines
668 B
Swift
36 lines
668 B
Swift
|
//
|
||
|
// Silica_ViewerTests.swift
|
||
|
// Silica ViewerTests
|
||
|
//
|
||
|
// Created by Joshua on 2/14/22.
|
||
|
// Copyright © 2022 Josh. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import XCTest
|
||
|
|
||
|
@testable import Silica_Viewer
|
||
|
|
||
|
class Silica_ViewerTests: XCTestCase {
|
||
|
|
||
|
let document = Document()
|
||
|
|
||
|
override func setUpWithError() throws {
|
||
|
|
||
|
}
|
||
|
|
||
|
override func tearDownWithError() throws {
|
||
|
|
||
|
}
|
||
|
|
||
|
func testExample() throws {
|
||
|
XCTAssert(document.parsePairString("{-1, -1}")! == (-1, -1))
|
||
|
XCTAssert(document.parsePairString("{255, 255}")! == (255, 255))
|
||
|
XCTAssert(document.parsePairString("{255}") == nil)
|
||
|
}
|
||
|
|
||
|
func testPerformanceExample() throws {
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|