Skip to content

Commit ec00c87

Browse files
committed
update test comments
1 parent 19e893a commit ec00c87

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/std/src/msgpack.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ mod tests {
127127

128128
#[test]
129129
fn deserialize_modified_field_order() {
130+
// field order doesn't matter since we encode field names
131+
130132
#[derive(Serialize, Deserialize, Debug, PartialEq)]
131133
struct TestV1 {
132134
a: String,
@@ -160,7 +162,7 @@ mod tests {
160162

161163
#[test]
162164
fn deserialize_new_fields() {
163-
// fields can be added, but only to the end of the struct
165+
// new fields can be added at the end
164166

165167
#[derive(Serialize, Deserialize, Debug, PartialEq)]
166168
struct TestV1 {
@@ -190,8 +192,7 @@ mod tests {
190192

191193
#[test]
192194
fn deserialize_new_fields_in_the_middle() {
193-
// fields can be added, but only to the end of the struct
194-
195+
// fields can be added even in the middle
195196
#[derive(Serialize, Deserialize, Debug, PartialEq)]
196197
struct TestV1 {
197198
a: String,

0 commit comments

Comments
 (0)