From 896e876e18af2ee3be54c8b01d8572aacd251a58 Mon Sep 17 00:00:00 2001 From: Steffan Andrews Date: Fri, 29 Jan 2021 20:17:25 -0800 Subject: [PATCH] Fixed properties needing to be Public --- Sources/SwiftASCII/ASCIICharacter.swift | 6 +++--- Sources/SwiftASCII/ASCIIString.swift | 4 ++-- Tests/SwiftASCIITests/ASCIICharacter Tests.swift | 2 +- Tests/SwiftASCIITests/ASCIIString Tests.swift | 2 +- Tests/SwiftASCIITests/String Tests.swift | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Sources/SwiftASCII/ASCIICharacter.swift b/Sources/SwiftASCII/ASCIICharacter.swift index 675d06d..37c0bb2 100644 --- a/Sources/SwiftASCII/ASCIICharacter.swift +++ b/Sources/SwiftASCII/ASCIICharacter.swift @@ -12,13 +12,13 @@ import Foundation public struct ASCIICharacter: Hashable { /// The ASCII character returned as a `Character` - @usableFromInline let characterValue: Character + public let characterValue: Character /// The ASCII encoding value of this character - @usableFromInline let asciiValue: UInt8 + public let asciiValue: UInt8 /// The ASCII character encoded as raw Data - @usableFromInline var rawData: Data { + public var rawData: Data { Data([asciiValue]) } diff --git a/Sources/SwiftASCII/ASCIIString.swift b/Sources/SwiftASCII/ASCIIString.swift index 514417c..9fd8bc2 100644 --- a/Sources/SwiftASCII/ASCIIString.swift +++ b/Sources/SwiftASCII/ASCIIString.swift @@ -12,10 +12,10 @@ import Foundation public struct ASCIIString: Equatable, Hashable { /// The ASCII string returned as a `String` - @usableFromInline let stringValue: String + public let stringValue: String /// The ASCII string encoded as raw Data - @usableFromInline let rawData: Data + public let rawData: Data @inlinable public init?(exactly source: String) { diff --git a/Tests/SwiftASCIITests/ASCIICharacter Tests.swift b/Tests/SwiftASCIITests/ASCIICharacter Tests.swift index fab4084..9e76645 100644 --- a/Tests/SwiftASCIITests/ASCIICharacter Tests.swift +++ b/Tests/SwiftASCIITests/ASCIICharacter Tests.swift @@ -9,7 +9,7 @@ #if !os(watchOS) import XCTest -@testable import SwiftASCII +import SwiftASCII class ASCIICharacterTests: XCTestCase { diff --git a/Tests/SwiftASCIITests/ASCIIString Tests.swift b/Tests/SwiftASCIITests/ASCIIString Tests.swift index 434b7d5..c003f4a 100644 --- a/Tests/SwiftASCIITests/ASCIIString Tests.swift +++ b/Tests/SwiftASCIITests/ASCIIString Tests.swift @@ -9,7 +9,7 @@ #if !os(watchOS) import XCTest -@testable import SwiftASCII +import SwiftASCII class ASCIIStringTests: XCTestCase { diff --git a/Tests/SwiftASCIITests/String Tests.swift b/Tests/SwiftASCIITests/String Tests.swift index 97ecb7b..b2f2519 100644 --- a/Tests/SwiftASCIITests/String Tests.swift +++ b/Tests/SwiftASCIITests/String Tests.swift @@ -9,7 +9,7 @@ #if !os(watchOS) import XCTest -@testable import SwiftASCII +import SwiftASCII class StringTests: XCTestCase {