brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neykov <...@git.apache.org>
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:

    https://github.com/apache/brooklyn-server/pull/589
  
    +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
works).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message