Skip to content

Commit

Permalink
Fix availability tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielctull committed Jun 26, 2024
1 parent 9c23c20 commit f850095
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/FileBuilderTests/FileBuilderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ final class FileBuilderTests: XCTestCase {
func testLimitedAvailability() throws {

try AssertFile {
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
if #available(iOS 999, macOS 999, tvOS 999, watchOS 999, *) {
TextFile("Future") {
"Future Content"
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/FileBuilderTests/TextBuilderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ final class TextBuilderTests: XCTestCase {
func testLimitedAvailability() throws {

try AssertText {
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
if #available(iOS 999, macOS 999, tvOS 999, watchOS 999, *) {
"Future Content"
} else if #available(*) { // <-- This causes the builder to hit
"Current Content" // buildLimitedAvailability.
Expand Down

0 comments on commit f850095

Please sign in to comment.