1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
silica-viewer/Silica ViewerTests/Silica_ViewerTests.swift

39 lines
887 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)
XCTAssert(document.parseChunkFilename("1~1.chunk")! == (1, 2))
XCTAssert(document.parseChunkFilename("10~2.chunk")! == (10, 3))
XCTAssert(document.parseChunkFilename("~1.chunk") == nil)
}
func testPerformanceExample() throws {
}
}