This repository was archived by the owner on Mar 10, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +54
-7
lines changed Expand file tree Collapse file tree 4 files changed +54
-7
lines changed Original file line number Diff line number Diff line change 1- //
2- // Package.swift
3- // Keyboardhelper
4- //
5- // Copyright (c) 2016 Nodes iOS
6- //
1+ // swift-tools-version:5.0
2+ // The swift-tools-version declares the minimum version of Swift required to build this package.
73
84import PackageDescription
95
106let package = Package (
11- name: " KeyboardHelper "
7+ name: " KeyboardHelper " ,
8+ products: [
9+ // Products define the executables and libraries produced by a package, and make them visible to other packages.
10+ . library(
11+ name: " KeyboardHelper " ,
12+ targets: [ " KeyboardHelper " ] ) ,
13+ ] ,
14+ dependencies: [
15+ // Dependencies declare other packages that this package depends on.
16+ // .package(url: /* package url */, from: "1.0.0"),
17+ ] ,
18+ targets: [
19+ // Targets are the basic building blocks of a package. A target can define a module or a test suite.
20+ // Targets can depend on other targets in this package, and on products in packages which this package depends on.
21+ . target(
22+ name: " KeyboardHelper " ,
23+ dependencies: [ ] ) ,
24+ . testTarget(
25+ name: " KeyboardHelperTests " ,
26+ dependencies: [ " KeyboardHelper " ] ) ,
27+ ]
1228)
Original file line number Diff line number Diff line change 1+ import XCTest
2+ @testable import KeyboardHelper
3+
4+ final class KeyboardHelperTests : XCTestCase {
5+ func testExample( ) {
6+ // This is an example of a functional test case.
7+ // Use XCTAssert and related functions to verify your tests produce the correct
8+ // results.
9+ XCTAssertEqual ( KeyboardHelper ( ) . text, " Hello, World! " )
10+ }
11+
12+ static var allTests = [
13+ ( " testExample " , testExample) ,
14+ ]
15+ }
Original file line number Diff line number Diff line change 1+ import XCTest
2+
3+ #if !canImport(ObjectiveC)
4+ public func allTests( ) -> [ XCTestCaseEntry ] {
5+ return [
6+ testCase ( KeyboardHelperTests . allTests) ,
7+ ]
8+ }
9+ #endif
Original file line number Diff line number Diff line change 1+ import XCTest
2+
3+ import KeyboardHelperTests
4+
5+ var tests = [ XCTestCaseEntry] ( )
6+ tests += KeyboardHelperTests . allTests ( )
7+ XCTMain ( tests)
You can’t perform that action at this time.
0 commit comments