Documented the String+Constants extension in the library target.
This commit is contained in:
parent
9154009f6e
commit
765ab9c778
@ -0,0 +1,8 @@
|
||||
extension String {
|
||||
/// A representation of an empty string.
|
||||
static let empty = ""
|
||||
/// A representation of a string containing solely a forwarding slash.
|
||||
static let forwardSlash = "/"
|
||||
/// A representation of a string that identifies a previous folder in a path component.
|
||||
static let previousFolder = ".."
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
/// A type that can provide a relative path representation.
|
||||
/// A protocol that provides a relative path representation.
|
||||
protocol Pathable {
|
||||
|
||||
// MARK: Properties
|
||||
|
@ -5,6 +5,8 @@ import Testing
|
||||
@Suite("IndexPrefix", .tags(.enumeration))
|
||||
struct IndexPrefixTests {
|
||||
|
||||
// MARK: Properties tests
|
||||
|
||||
@Test(arguments: zip(IndexPrefix.allCases, [String].paths))
|
||||
func path(
|
||||
for prefix: IndexPrefix,
|
||||
|
@ -5,6 +5,8 @@ import Testing
|
||||
@Suite("StaticFile", .tags(.enumeration))
|
||||
struct StaticFileTests {
|
||||
|
||||
// MARK: Properties tests
|
||||
|
||||
@Test(arguments: zip(StaticFile.allCases, [String].paths))
|
||||
func path(
|
||||
for prefix: StaticFile,
|
||||
|
Loading…
x
Reference in New Issue
Block a user