Feature BRE_FR_047 visualisation
Feature-ID: BRE_FR_047
Category: brackets
Feature-Name: range expressions
Feature-Explanation: The interpretation of range expressions where the ending range point is also the starting range point of a subsequent range expression (for example, "[a-m-o]" ) is undefined. The character shall be treated as itself if it occurs first (after an initial '^', if any). The <hyphen-minus> character shall be treated as itself if it occurs last in the list. To use a <hyphen-minus> as the starting range point it shall be specified as a collating symbol. If a bracket expression specifies both '-' and ']', the ']' shall be placed first (after the '^', if any) and the '-' last within the bracket expression.
Source: Extracted from: IEEE Std 1003.1™-2017 (Revision of IEEE Std 1003.1-2008), 9.1 - matched \
ID | Search text | Regex pattern | Expected Output* |
---|---|---|---|
AKT_BRE_076 | TST_DS_001 | [a-m-o]' | undefined |
AKT_BRE_077 | TST_DS_002 | [-ac]' | {3}, {{a},{c},{-}} |
AKT_BRE_078 | TST_DS_002 | [ac-]' | {3}, {{a},{c},{-}} |
AKT_BRE_079 | abc-def | [^-ac]' | {4}, {{b},{d},{e},{f}} |
AKT_BRE_080 | abc-def | [^ac-]' | {4}, {{b},{d},{e},{f}} |
AKT_BRE_081 | TST_DS_002 | [%--]' | {9}, {{%},{&},{(},{)},{+},{'},{,},{-},{*}} |
AKT_BRE_082 | TST_DS_002 | [--@]' | {10}, {{/},{=},{?},{@},{<},{>},{;},{:},{-},{.} |
AKT_BRE_083 | TST_DS_002 | [a--@]' | invalid |
AKT_BRE_084 | TST_DS_002 | [][.-.]-0]' | {37}, {{0},{°},{!},{"},{§},{%},{&},{/},{(},{)},{=},{?},{ß},{´},{`},{@},{€},{+},{~},{'},{#},{<},{ },{>},{ |
Documentation - Features for visualisation
Acceptance Criteria:
-
All acceptance criteria are fulfilled -
Diagramm displays the Regex right -
The right number of Matches and the right matches are shown
Definition of Done:
-
All Code ist commented (Docblocks, English) -
The unit tests were written, executed and passed (includes old code that is used) -
Every acceptance cirteria have at least a test case associated -
Has been peer-reviewed -
Documentation is updated -
The user interface is according to the design -
Acceptance of stakeholder