brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neykov <>
Subject [GitHub] brooklyn-server issue #589: yaml-test assertions: fix use of “matches”
Date Sat, 11 Mar 2017 11:48:21 GMT
Github user neykov commented on the issue:
    +1 for `containsMatch` (or just `contains`) with `MULTILINE` + `DOTALL`.
    It covers all use cases:
      * simple contains: `xxx`
      * match all: `^.*xxx.*$`
      * match single line: `(^|\n)xxx(\n|$)`
      * match across lines: `expected value:\n\txxx`
    Most of our tests are the "simple contains" case anyway.
    I think it's still worth changing `matches` to `MULTILINE` + `DOTALL`. For existing single-line
tests there's no change and for multi-line results it's more natural (much like the IDE search

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message