Commit 0382e2e 1 parent 0f3896b commit 0382e2e Copy full SHA for 0382e2e
File tree 2 files changed +5
-15
lines changed
2 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
175
175
name : "" ,
176
176
norm_name : None ,
177
177
dialects : DNGO ,
178
- occurence : Occurence :: EXACT ,
178
+ occurence : Occurence :: ANY ,
179
179
front_only : false ,
180
180
allow_case : false ,
181
181
def_plural_subindex : None ,
Original file line number Diff line number Diff line change @@ -1499,19 +1499,9 @@ mod tests {
1499
1499
let trans =
1500
1500
ParsedString :: parse ( "{RED}{}{RED}{TRAIN}{BLUE}{TRAIN}{RIGHT_ARROW}{SHIP}" ) . unwrap ( ) ;
1501
1501
let val_trans = validate_string ( & config, & trans, Some ( & base) ) ;
1502
- assert_eq ! ( val_trans. len( ) , 5 ) ;
1502
+ assert_eq ! ( val_trans. len( ) , 4 ) ;
1503
1503
assert_eq ! (
1504
1504
val_trans[ 0 ] ,
1505
- ValidationError {
1506
- severity: Severity :: Warning ,
1507
- pos_begin: None ,
1508
- pos_end: None ,
1509
- message: String :: from( "String command '{}': expected 2 times, found 1 times." ) ,
1510
- suggestion: None ,
1511
- }
1512
- ) ;
1513
- assert_eq ! (
1514
- val_trans[ 1 ] ,
1515
1505
ValidationError {
1516
1506
severity: Severity :: Warning ,
1517
1507
pos_begin: None ,
@@ -1521,7 +1511,7 @@ mod tests {
1521
1511
}
1522
1512
) ;
1523
1513
assert_eq ! (
1524
- val_trans[ 2 ] ,
1514
+ val_trans[ 1 ] ,
1525
1515
ValidationError {
1526
1516
severity: Severity :: Warning ,
1527
1517
pos_begin: None ,
@@ -1533,7 +1523,7 @@ mod tests {
1533
1523
}
1534
1524
) ;
1535
1525
assert_eq ! (
1536
- val_trans[ 3 ] ,
1526
+ val_trans[ 2 ] ,
1537
1527
ValidationError {
1538
1528
severity: Severity :: Warning ,
1539
1529
pos_begin: None ,
@@ -1543,7 +1533,7 @@ mod tests {
1543
1533
}
1544
1534
) ;
1545
1535
assert_eq ! (
1546
- val_trans[ 4 ] ,
1536
+ val_trans[ 3 ] ,
1547
1537
ValidationError {
1548
1538
severity: Severity :: Warning ,
1549
1539
pos_begin: None ,
You can’t perform that action at this time.
0 commit comments