mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Change empty assertions to use len() instead
This commit is contained in:
parent
fa9e7b5061
commit
f84194c35c
1 changed files with 3 additions and 3 deletions
|
|
@ -37,7 +37,7 @@ fn empty() {
|
||||||
|
|
||||||
assert_eq!(response.server_id, "0");
|
assert_eq!(response.server_id, "0");
|
||||||
assert_eq!(response.protocol_version, 2);
|
assert_eq!(response.protocol_version, 2);
|
||||||
assert_eq!(response.partitions, HashMap::new());
|
assert_eq!(response.partitions.len(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
@ -46,7 +46,7 @@ fn empty() {
|
||||||
|
|
||||||
assert_eq!(response.server_id, "0");
|
assert_eq!(response.server_id, "0");
|
||||||
assert_eq!(response.message_cursor, -1);
|
assert_eq!(response.message_cursor, -1);
|
||||||
assert_eq!(response.instances.as_ref(), &HashMap::new());
|
assert_eq!(response.instances.len(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
@ -55,7 +55,7 @@ fn empty() {
|
||||||
|
|
||||||
assert_eq!(response.server_id, "0");
|
assert_eq!(response.server_id, "0");
|
||||||
assert_eq!(response.message_cursor, -1);
|
assert_eq!(response.message_cursor, -1);
|
||||||
assert_eq!(response.instances, HashMap::new());
|
assert_eq!(response.instances.len(), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue