mirror of
https://github.com/nicklockwood/SwiftFormat.git
synced 2026-06-16 10:34:34 +00:00
23 lines
497 B
Swift
23 lines
497 B
Swift
//
|
|
// SpaceInsideGenericsTests.swift
|
|
// SwiftFormatTests
|
|
//
|
|
// Created by Nick Lockwood on 8/22/16.
|
|
// Copyright © 2024 Nick Lockwood. All rights reserved.
|
|
//
|
|
|
|
import XCTest
|
|
@testable import SwiftFormat
|
|
|
|
final class SpaceInsideGenericsTests: XCTestCase {
|
|
func testSpaceInsideGenerics() {
|
|
let input = """
|
|
Foo< Bar< Baz > >
|
|
"""
|
|
let output = """
|
|
Foo<Bar<Baz>>
|
|
"""
|
|
testFormatting(for: input, output, rule: .spaceInsideGenerics)
|
|
}
|
|
}
|