diff --git a/jsonassert/src/test/groovy/com/toomuchcoding/jsonassert/JsonAssertionSpec.groovy b/jsonassert/src/test/groovy/com/toomuchcoding/jsonassert/JsonAssertionSpec.groovy index dd56195..131f48e 100644 --- a/jsonassert/src/test/groovy/com/toomuchcoding/jsonassert/JsonAssertionSpec.groovy +++ b/jsonassert/src/test/groovy/com/toomuchcoding/jsonassert/JsonAssertionSpec.groovy @@ -849,4 +849,14 @@ class JsonAssertionSpec extends Specification { noExceptionThrown() } + @Issue('#57') + def 'should work with matchers'() { + given: + String json = '''{ "value": -1}''' + when: + assertThatJson(json).field("['value']").matches("-?(\\d+)") + then: + noExceptionThrown() + } + }