Skip to content

Commit

Permalink
Tidy URITemplateMacro tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdeem committed Dec 4, 2024
1 parent b3f8925 commit 5f4950f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@

import XCTest

class MacroTests: XCTestCase {
class URITemplateMacroTests: XCTestCase {
let testMacros: [String: Macro.Type] = [
"URITemplate": URITemplateMacro.self,
]

func testValidURITemplateMacro() throws {
func testValid() throws {
assertMacroExpansion(
#"""
#URITemplate("https://api.github.com/repos/{owner}")
Expand All @@ -38,7 +38,7 @@
macros: testMacros)
}

func testInvalidURITemplateMacro() throws {
func testInvalid() throws {
assertMacroExpansion(
#"""
#URITemplate("https://api.github.com/repos/{}/{repo}")
Expand All @@ -53,7 +53,7 @@
macros: testMacros)
}

func testMisusedURITemplateMacro() throws {
func testMisused() throws {
assertMacroExpansion(
#"""
let s: StaticString = "https://api.github.com/repos/{owner}"
Expand Down

0 comments on commit 5f4950f

Please sign in to comment.