Skip to content

Commit b33a9d6

Browse files
committed
Remove invalid test
1 parent 9fd24cc commit b33a9d6

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

Tests/TestingMacrosTests/ConditionMacroTests.swift

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -492,25 +492,4 @@ struct ConditionMacroTests {
492492
}
493493
}
494494
}
495-
496-
@Test("Macro expansion is performed within a test function")
497-
func macroExpansionInTestFunction() throws {
498-
let input = ##"""
499-
@Test("Random number generation") func rng() {
500-
let number = Int.random(in: 1 ..< .max)
501-
#expect((number > 0 && foo() != bar(at: 9)) != !true, "\(number) must be greater than 0")
502-
}
503-
"""##
504-
505-
let rawExpectedOutput = ##"""
506-
@Test("Random number generation") func rng() {
507-
let number = Int.random(in: 1 ..< .max)
508-
Testing.__checkBinaryOperation((number > 0 && foo() != bar(at: 9)), { $0 != $1() }, !true, expression: .__fromBinaryOperation(.__fromSyntaxNode("(number > 0 && foo() != bar(at: 9))"), "!=", .__fromSyntaxNode("!true")), comments: ["\(number) must be greater than 0"], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
509-
}
510-
"""##
511-
512-
let (expectedOutput, _) = try parse(rawExpectedOutput, activeMacros: ["expect"], removeWhitespace: true)
513-
let (actualOutput, _) = try parse(input, activeMacros: ["expect"], removeWhitespace: true)
514-
#expect(expectedOutput == actualOutput)
515-
}
516495
}

0 commit comments

Comments
 (0)