Skip to content

Commit dc5f964

Browse files
committed
Swift: Modify the test stubs to test flow models more robustly.
1 parent 84f592b commit dc5f964

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

swift/ql/test/library-tests/regex/regex.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ struct Regex<Output> : RegexComponent {
1717

1818
init(_ pattern: String) throws where Output == AnyRegexOutput { }
1919

20-
func ignoresCase(_ ignoresCase: Bool = true) -> Regex<Regex<Output>.RegexOutput> { return self }
21-
func dotMatchesNewlines(_ dotMatchesNewlines: Bool = true) -> Regex<Regex<Output>.RegexOutput> { return self }
22-
func anchorsMatchLineEndings(_ matchLineEndings: Bool = true) -> Regex<Regex<Output>.RegexOutput> { return self }
20+
func ignoresCase(_ ignoresCase: Bool = true) -> Regex<Regex<Output>.RegexOutput> { return 0 as! Self }
21+
func dotMatchesNewlines(_ dotMatchesNewlines: Bool = true) -> Regex<Regex<Output>.RegexOutput> { return 0 as! Self }
22+
func anchorsMatchLineEndings(_ matchLineEndings: Bool = true) -> Regex<Regex<Output>.RegexOutput> { return 0 as! Self }
2323

2424
func firstMatch(in string: String) throws -> Regex<Output>.Match? { return nil }
2525
func prefixMatch(in string: String) throws -> Regex<Output>.Match? { return nil }

0 commit comments

Comments
 (0)