8 Commits

Author SHA1 Message Date
Ingo Karkat 8bcf0dfc8d Tests: Minor: Plan (forgotten) correct amount of tests 2018-09-29 12:56:41 +02:00
Ingo Karkat a9f8e06b33 Add ingo#regexp#split#GlobalFlags() 2018-09-10 14:26:22 +02:00
Ingo Karkat 89746e830c Tests: Add coverage of adding patterns considering min-max lengths
The ingo#regexp#length#Project() tests check the determination of the correct min-max values for multis, but ingo#regexp#split#AddPatternByProjectedMatchLength() does its own comparison of max (or min, if max is endless) in branches against min of the addition.
The added tests cover that, and show the somewhat unexpected behavior of \{M,N} multis. I still don't wanna introduce more complexity for them, as they are rare, the current behavior isn't completely stupid, and all of this is an approximation, anyway.
2018-09-09 21:39:44 +02:00
Ingo Karkat 092fdd7ea4 ingo#regexp#split#AddPatternByProjectedMatchLength(): Handle PrefixGroupsSuffix exceptions
Clients don't expect an exception here; invalid patterns (to be added and in existing branches) should just be treated as undetermined length.
2018-09-02 17:47:16 +02:00
Ingo Karkat 50c9681c59 Tests: Refactoring: Move tests with invalid patterns to separate test 2018-09-02 17:46:49 +02:00
Ingo Karkat 0f949cc67f Add ingo#regexp#split#AddPatternByProjectedMatchLength()
Using the (basic so far) implementation of ingo#regexp#length#Project().
2018-08-21 12:03:55 +02:00
Ingo Karkat 61682fa2c5 Add ingo#regexp#split#PrefixGroupsSuffix() 2018-08-14 10:09:11 +02:00
Ingo Karkat 737f183a92 Add ingo#regexp#split#TopLevelBranches() 2017-12-15 10:49:41 +01:00