Skip to content

Commit 60173c1

Browse files
committed
Dont print during tests
1 parent bbe756b commit 60173c1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Tests/RegexTests/DiagnosticTests.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,12 @@ extension RegexTests {
101101
func testErrors() {
102102
// Note: These don't really "test" anything, but good to
103103
// see our output...
104-
print("\(ParseError.emptyProperty)")
105-
print("\(ParseError.expectedNumber("abc", kind: .decimal))")
106-
print("\(ParseError.expectedNumber("abc", kind: .hex))")
104+
//
105+
// FIXME: Convert to stringy tests
106+
if enablePrinting {
107+
print("\(ParseError.emptyProperty)")
108+
print("\(ParseError.expectedNumber("abc", kind: .decimal))")
109+
print("\(ParseError.expectedNumber("abc", kind: .hex))")
110+
}
107111
}
108112
}

0 commit comments

Comments
 (0)