Rename has content extension files
This commit is contained in:
parent
fb62848007
commit
fd381d8bb8
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// Collection+HasContent.swift
|
||||
// Collection+Content.swift
|
||||
// SwiftKit
|
||||
//
|
||||
// Created by Daniel Saidi on 2020-06-09.
|
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// String+HasContent.swift
|
||||
// String+Content.swift
|
||||
// SwiftKit
|
||||
//
|
||||
// Created by Daniel Saidi on 2020-06-05.
|
||||
|
@ -10,6 +10,11 @@ import Foundation
|
|||
|
||||
public extension String {
|
||||
|
||||
var hasContent: Bool { !isEmpty }
|
||||
var hasTrimmedContent: Bool { !trimmingCharacters(in: .whitespaces).isEmpty }
|
||||
var hasContent: Bool {
|
||||
!isEmpty
|
||||
}
|
||||
|
||||
var hasTrimmedContent: Bool {
|
||||
!trimmingCharacters(in: .whitespaces).isEmpty
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// Collection+HasContentTests.swift
|
||||
// Collection+ContentTests.swift
|
||||
// SwiftKitTest
|
||||
//
|
||||
// Created by Daniel Saidi on 2020-06-09.
|
||||
|
@ -10,7 +10,7 @@ import Quick
|
|||
import Nimble
|
||||
import SwiftKit
|
||||
|
||||
class Array_HasContentTests: QuickSpec {
|
||||
class Collection_ContentTests: QuickSpec {
|
||||
|
||||
override func spec() {
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// String+HasContentTests.swift
|
||||
// String+ContentTests.swift
|
||||
// SwiftKitTests
|
||||
//
|
||||
// Created by Daniel Saidi on 2020-06-04.
|
||||
|
@ -10,7 +10,7 @@ import Quick
|
|||
import Nimble
|
||||
import SwiftKit
|
||||
|
||||
class String_HasContentTests: QuickSpec {
|
||||
class String_ContentTests: QuickSpec {
|
||||
|
||||
override func spec() {
|
||||
|
Loading…
Reference in New Issue