nyaruka / goflow

Flow engine for RapidPro/TextIt.
Other
45 stars 20 forks source link

Migration: deal with Python / Golang regex differences for regex tests #73

Closed rowanseymour closed 7 years ago

rowanseymour commented 7 years ago

Could convert regexes like we once did for Java, e.g. https://github.com/rapidpro/flows/blob/master/java/src/main/java/io/rapidpro/flows/definition/tests/text/RegexTest.java#L96

nicpottier commented 7 years ago

Wonder whether an audit of our any current tests would help us determine what/if we need to do that at all.

rowanseymour commented 7 years ago

Yeah actually I just assumed golang regexes would be more like Java regexes... but seems from playing on https://regex101.com/ that they use the same (?P<..>) syntax for named capture groups