@@ -1092,8 +1092,8 @@ mod tests {
1092
1092
fn test_complex_structure_invoke_cmd ( ) {
1093
1093
// This is what we typically get in an invoke command
1094
1094
let b = [
1095
- 0x15 , 0x36 , 0x0 , 0x15 , 0x37 , 0x0 , 0x24 , 0x0 , 0x2 , 0x24 , 0x2 , 0x6 , 0x24 , 0x3 , 0x1 , 0x18 ,
1096
- 0x35 , 0x1 , 0x18 , 0x18 , 0x18 , 0x18 ,
1095
+ 0x15 , 0x36 , 0x0 , 0x15 , 0x37 , 0x0 , 0x25 , 0x0 , 0x2 , 0x0 , 0x26 , 0x1 , 0x6 , 0x0 , 0x0 , 0x0 ,
1096
+ 0x26 , 0x2 , 0x1 , 0x0 , 0x0 , 0x0 , 0x18 , 0x35 , 0x1 , 0x18 , 0x18 , 0x18 , 0x18 ,
1097
1097
] ;
1098
1098
1099
1099
let root = get_root_node_struct ( & b) . unwrap ( ) ;
@@ -1115,24 +1115,24 @@ mod tests {
1115
1115
cmd_path. find_tag( 0 ) . unwrap( ) ,
1116
1116
TLVElement {
1117
1117
tag_type: TagType :: Context ( 0 ) ,
1118
- element_type: ElementType :: U8 ( 2 ) ,
1118
+ element_type: ElementType :: U16 ( 2 ) ,
1119
1119
}
1120
1120
) ;
1121
1121
assert_eq ! (
1122
- cmd_path. find_tag( 2 ) . unwrap( ) ,
1122
+ cmd_path. find_tag( 1 ) . unwrap( ) ,
1123
1123
TLVElement {
1124
- tag_type: TagType :: Context ( 2 ) ,
1125
- element_type: ElementType :: U8 ( 6 ) ,
1124
+ tag_type: TagType :: Context ( 1 ) ,
1125
+ element_type: ElementType :: U32 ( 6 ) ,
1126
1126
}
1127
1127
) ;
1128
1128
assert_eq ! (
1129
- cmd_path. find_tag( 3 ) . unwrap( ) ,
1129
+ cmd_path. find_tag( 2 ) . unwrap( ) ,
1130
1130
TLVElement {
1131
- tag_type: TagType :: Context ( 3 ) ,
1132
- element_type: ElementType :: U8 ( 1 ) ,
1131
+ tag_type: TagType :: Context ( 2 ) ,
1132
+ element_type: ElementType :: U32 ( 1 ) ,
1133
1133
}
1134
1134
) ;
1135
- assert_eq ! ( cmd_path. find_tag( 1 ) , Err ( Error :: NoTagFound ) ) ;
1135
+ assert_eq ! ( cmd_path. find_tag( 3 ) , Err ( Error :: NoTagFound ) ) ;
1136
1136
1137
1137
// This is the variable of the invoke command
1138
1138
assert_eq ! (
0 commit comments