We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58bb875 commit 9b54464Copy full SHA for 9b54464
capnpc/test/test.rs
@@ -1181,7 +1181,12 @@ mod tests {
1181
assert_eq!(text_list.get(1).unwrap(), "xyzzy");
1182
assert_eq!(text_list.get(2).unwrap(), "thud");
1183
1184
- // TODO: DATA_LIST_CONST
+ let data_list_const = test_constants::DATA_LIST_CONST;
1185
+ let data_list = data_list_const.get().unwrap();
1186
+ assert_eq!(data_list.len(), 3);
1187
+ assert_eq!(data_list.get(0).unwrap(), b"oops");
1188
+ assert_eq!(data_list.get(1).unwrap(), b"exhausted");
1189
+ assert_eq!(data_list.get(2).unwrap(), b"rfc3092");
1190
1191
let struct_list_const = test_constants::STRUCT_LIST_CONST;
1192
let struct_list = struct_list_const.get().unwrap();
0 commit comments