Skip to content

Commit 59dc7f5

Browse files
committed
Remove invalid test
1 parent 4037e16 commit 59dc7f5

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
@@ -439,25 +439,4 @@ struct ConditionMacroTests {
439439
}
440440
}
441441
}
442-
443-
@Test("Macro expansion is performed within a test function")
444-
func macroExpansionInTestFunction() throws {
445-
let input = ##"""
446-
@Test("Random number generation") func rng() {
447-
let number = Int.random(in: 1 ..< .max)
448-
#expect((number > 0 && foo() != bar(at: 9)) != !true, "\(number) must be greater than 0")
449-
}
450-
"""##
451-
452-
let rawExpectedOutput = ##"""
453-
@Test("Random number generation") func rng() {
454-
let number = Int.random(in: 1 ..< .max)
455-
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()
456-
}
457-
"""##
458-
459-
let (expectedOutput, _) = try parse(rawExpectedOutput, activeMacros: ["expect"], removeWhitespace: true)
460-
let (actualOutput, _) = try parse(input, activeMacros: ["expect"], removeWhitespace: true)
461-
#expect(expectedOutput == actualOutput)
462-
}
463442
}

0 commit comments

Comments
 (0)