···334334 // Valid json and message type but not an array.
335335 "{\"Ok\":{\"Id\":0}}",
336336 // Valid json and message type but not an array.
337337- // TODO This should fail (Ok can't have an Id of 0), but currently doesn't.
338338- // "[{\"Ok\":{\"Id\":0}}]",
337337+ "[{\"Ok\":{\"Id\":0}}]",
339338 // Valid json and message type but with extra content
340339 "[{\"Ok\":{\"NotAField\":\"NotAValue\",\"Id\":1}}]",
341340 ];
···347346 .into()]);
348347 for msg in incorrect_incoming_messages {
349348 let res = serializer.deserialize(ButtplugSerializedMessage::Text(msg.to_owned()));
350350- assert!(res.is_err());
349349+ assert!(res.is_err(), "{} should be an error", msg);
351350 if let Err(ButtplugSerializerError::MessageSpecVersionNotReceived) = res {
352351 assert!(false, "Wrong error!");
353352 }