test redefine valid_enum without remove_check
This commit is contained in:
parent
0ef5429577
commit
2d0ccc6896
4 changed files with 52 additions and 0 deletions
33
tests/dictionaries/80valid_enum_base_redefine/00-base.xml
Normal file
33
tests/dictionaries/80valid_enum_base_redefine/00-base.xml
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail>
|
||||
<variables>
|
||||
<family name="general" mode="expert">
|
||||
<variable name="mode_conteneur_actif" type="oui/non" description="No change">
|
||||
<value>non</value>
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar2" type="string" description="multi">
|
||||
<value>c</value>
|
||||
</variable>
|
||||
<variable name="enumvar" type="string" description="multi" help="bla bla bla">
|
||||
<value>c</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
|
||||
<constraints>
|
||||
<check name="valid_enum" target="enumvar">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
</check>
|
||||
<check name="valid_enum" target="enumvar2">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
</check>
|
||||
</constraints>
|
||||
</rougail>
|
||||
<!-- vim: ts=4 sw=4 expandtab
|
||||
-->
|
19
tests/dictionaries/80valid_enum_base_redefine/01-base.xml
Normal file
19
tests/dictionaries/80valid_enum_base_redefine/01-base.xml
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail>
|
||||
<variables>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" redefine="True">
|
||||
<value>c</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
|
||||
<constraints>
|
||||
<check name="valid_enum" target="enumvar">
|
||||
<param>a</param>
|
||||
<param>c</param>
|
||||
</check>
|
||||
</constraints>
|
||||
</rougail>
|
||||
<!-- vim: ts=4 sw=4 expandtab
|
||||
-->
|
0
tests/dictionaries/80valid_enum_base_redefine/errno_3
Normal file
0
tests/dictionaries/80valid_enum_base_redefine/errno_3
Normal file
Loading…
Reference in a new issue