Use expected.getMessageRegex when no message for the Diagnostic descriptor has been defined

This commit is contained in:
Filip Hrisafov 2020-04-12 12:26:07 +02:00
parent 6797afb647
commit 1bbc4e1ca8

View File

@ -329,7 +329,7 @@ abstract class CompilingStatement extends Statement {
actual.getLine(),
actual.getKind()
)
).matches( "(?ms).*" + expected.getMessage() + ".*" );
).matches( "(?ms).*" + expected.getMessageRegex() + ".*" );
}
}
}