Skip to content

Commit

Permalink
Swiftlint run!
Browse files Browse the repository at this point in the history
  • Loading branch information
rismay-luassat committed Jun 25, 2024
1 parent 512fe54 commit 5692b43
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Sources/WrkstrmMain/CustomCollections/Enums/SortEnum.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public struct Sort<Type> {
}

/// A convinience comparator combinator given an array of simple comparators.
@_specialize(where Type:_NativeClass)
@_specialize(where Type: _NativeClass)
public static func by(_ comparators: [Comparator]) -> Comparator {
{
for comparator in comparators {
Expand All @@ -58,7 +58,7 @@ public struct Sort<Type> {

/// A sort struct combinator. Takes in a sequence of Sort structs and returns one comparator
/// function.
@_specialize(where Type:_NativeClass)
@_specialize(where Type: _NativeClass)
public static func by(_ comparators: Sort<Type>...) -> Comparator {
{
for order in comparators {
Expand All @@ -71,7 +71,7 @@ public struct Sort<Type> {

/// A sort struct combinator. Takes in an array of Sort structs and returns one comparator
/// function.
@_specialize(where Type:_NativeClass)
@_specialize(where Type: _NativeClass)
public static func by(_ comparators: [Sort<Type>]) -> Comparator {
{
for order in comparators {
Expand Down
2 changes: 1 addition & 1 deletion Sources/WrkstrmMain/Extensions/String/String+Error.swift
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/// Adds conformance to Error allows a string to be returned from methods marked as `throws`
extension String : Error {}
extension String: Error {}
6 changes: 3 additions & 3 deletions Tests/WrkstrmMainTests/StringKebabTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ class StringKebabTests: XCTestCase {
("testAllUppercaseCamelCaseToKebabCase", testAllUppercaseCamelCaseToKebabCase),
("testAlreadyKebabCase", testAlreadyKebabCase),
]

func testSimpleCamelCaseToKebabCase() {
XCTAssertEqual("helloWorld".camelCaseToKebabCase(), "hello-world")
}

func testAllUppercaseCamelCaseToKebabCase() {
XCTAssertEqual("HELLOWORLD".camelCaseToKebabCase(), "h-e-l-l-o-w-o-r-l-d")
}

func testAlreadyKebabCase() {
XCTAssertEqual("kebab-case-example".camelCaseToKebabCase(), "kebab-case-example")
}
Expand Down

0 comments on commit 5692b43

Please sign in to comment.