-
Notifications
You must be signed in to change notification settings - Fork 2
/
ZigzagTest.swift
31 lines (25 loc) · 881 Bytes
/
ZigzagTest.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
// ZigzagTest.swift
// algorithm_swiftTests
//
// Created by Haibo Yan on 3/25/18.
// Copyright © 2018 Haibo Yan. All rights reserved.
//
import XCTest
@testable import algorithm_swift
class ZigzagTest: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
let zigzag = Zigzag()
XCTAssertEqual(zigzag.convert("PAYPALISHIRING", 3), "PAHNAPLSIIGYIR")
}
}