added tests stubs

This commit is contained in:
Svyatoslav Nikolsky 2016-11-25 18:35:35 +03:00
parent bb7570f85b
commit 06820825a5
2 changed files with 18 additions and 0 deletions

View File

@ -61,3 +61,16 @@ fn short_transaction_id(nonce: u64, block_header: &BlockHeader, transaction_hash
siphash_transaction_hash_bytes[2..8].into()
}
#[cfg(test)]
mod tests {
#[test]
fn short_transaction_id_is_correct() {
// TODO
}
#[test]
fn compact_block_is_built_correctly() {
// TODO
}
}

View File

@ -2180,4 +2180,9 @@ pub mod tests {
Task::SendInventory(3, inventory, ServerTaskIndex::None),
]);
}
#[test]
fn relay_new_block_after_sendcmpct() {
// TODO
}
}