Skip to content

Commit

Permalink
SwiftFormat pass
Browse files Browse the repository at this point in the history
  • Loading branch information
orchetect committed Sep 25, 2024
1 parent f0806c3 commit edd40ce
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Sources/SwiftRadix/Radix/Radix Strings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ extension Radix {
/// Internal function to convert a radix String to a value.
/// Fails with nil if not successful or if the String is malformed.
@usableFromInline
internal func valueFrom<S: StringProtocol>(radixString: S) -> NumberType? {
func valueFrom<S: StringProtocol>(radixString: S) -> NumberType? {
var parseString: String

// treat string prefix as case-sensitive
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftRadix/Radix/Radix.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public struct Radix<T: BinaryInteger>: RadixProtocol {

/// Internal initializer that bypasses base range validation.
@inline(__always) @usableFromInline
internal init(
init(
_ number: NumberType,
unsafeBase: Int
) {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftRadix/Utilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ extension StringProtocol {
///
/// Borrowed from OTCore 1.3.0: https://github.com/orchetect/OTCore (MIT license)
@_disfavoredOverload
internal func split(
func split(
every: Int,
backwards: Bool = false
) -> [SubSequence] {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftRadixTests/Radix/Binary/Binary Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// © 2020-2024 Steffan Andrews • Licensed under MIT License
//

import XCTest
import SwiftRadix
import XCTest

final class BinaryTests: XCTestCase {
func testBinary() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// © 2020-2024 Steffan Andrews • Licensed under MIT License
//

import XCTest
import SwiftRadix
import XCTest

final class BinaryTypeExtensionsTests: XCTestCase {
func testBinary_TypeExtensions_BinaryInteger() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftRadixTests/Radix/Hex/Hex Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// © 2020-2024 Steffan Andrews • Licensed under MIT License
//

import XCTest
import SwiftRadix
import XCTest

final class HexTests: XCTestCase {
func testHex() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// © 2020-2024 Steffan Andrews • Licensed under MIT License
//

import XCTest
import SwiftRadix
import XCTest

final class HexTypeExtensionsTests: XCTestCase {
func testHex_TypeExtensions_BinaryInteger() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftRadixTests/Radix/Octal/Octal Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// © 2020-2024 Steffan Andrews • Licensed under MIT License
//

import XCTest
import SwiftRadix
import XCTest

final class OctalTests: XCTestCase {
func testOctal() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// © 2020-2024 Steffan Andrews • Licensed under MIT License
//

import XCTest
import SwiftRadix
import XCTest

final class OctalTypeExtensionsTests: XCTestCase {
func testOctal_TypeExtensions_BinaryInteger() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftRadixTests/Radix/Radix Bit Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// © 2020-2024 Steffan Andrews • Licensed under MIT License
//

import XCTest
import SwiftRadix
import XCTest

final class RadixBitTests: XCTestCase {
func testRadix_Bit_Get() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftRadixTests/Radix/Radix Bytes Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// © 2020-2024 Steffan Andrews • Licensed under MIT License
//

import XCTest
import SwiftRadix
import XCTest

final class RadixBytesTests: XCTestCase {
func testRadix_Bytes() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// © 2020-2024 Steffan Andrews • Licensed under MIT License
//

import XCTest
import SwiftRadix
import XCTest

final class RadixCollectionMethodsTests: XCTestCase {
func testRadix_CollectionExtension_stringValue() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftRadixTests/Radix/Radix Nibble Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// © 2020-2024 Steffan Andrews • Licensed under MIT License
//

import XCTest
import SwiftRadix
import XCTest

final class RadixNibbleTests: XCTestCase {
func testRadix_Nibble_Get() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftRadixTests/Radix/Radix Operators Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// © 2020-2024 Steffan Andrews • Licensed under MIT License
//

import XCTest
import SwiftRadix
import XCTest

final class RadixOperatorsTests: XCTestCase {
func testRadix_Operators() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// © 2020-2024 Steffan Andrews • Licensed under MIT License
//

import XCTest
import SwiftRadix
import XCTest

final class RadixProtocolAdoptionsTests: XCTestCase {
func testRadix_CustomStringConvertible() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftRadixTests/Radix/Radix Strings Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// © 2020-2024 Steffan Andrews • Licensed under MIT License
//

import XCTest
import SwiftRadix
import XCTest

final class RadixStringsTests: XCTestCase {
func testRadix_stringValue_Get() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftRadixTests/Radix/Radix Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// © 2020-2024 Steffan Andrews • Licensed under MIT License
//

import XCTest
import SwiftRadix
import XCTest

final class RadixTests: XCTestCase {
func testRadix_Init_Integer() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// © 2020-2024 Steffan Andrews • Licensed under MIT License
//

import XCTest
import SwiftRadix
import XCTest

final class RadixTypeExtensionsTests: XCTestCase {
func testRadix_TypeExtensions_BinaryInteger() {
Expand Down

0 comments on commit edd40ce

Please sign in to comment.