chore: fix lint warning (#283)
This commit is contained in:
parent
384afa284b
commit
1f870cac66
15 changed files with 133 additions and 112 deletions
|
|
@ -88,7 +88,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn test_datums_serialize_as_expected() {
|
||||
let test_blocks = vec![(
|
||||
let test_blocks = [(
|
||||
include_str!("../../../test_data/alonzo9.block"),
|
||||
include_str!("../../../test_data/alonzo9.datums"),
|
||||
)];
|
||||
|
|
@ -118,7 +118,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn test_native_scripts_serialize_as_expected() {
|
||||
let test_blocks = vec![(
|
||||
let test_blocks = [(
|
||||
include_str!("../../../test_data/alonzo9.block"),
|
||||
include_str!("../../../test_data/alonzo9.native"),
|
||||
)];
|
||||
|
|
|
|||
|
|
@ -1639,7 +1639,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn header_isomorphic_decoding_encoding() {
|
||||
let test_headers = vec![
|
||||
let test_headers = [
|
||||
// peculiar alonzo header used as origin for a vasil devnet
|
||||
include_str!("../../../test_data/alonzo26.header"),
|
||||
];
|
||||
|
|
|
|||
|
|
@ -745,7 +745,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn block_isomorphic_decoding_encoding() {
|
||||
let test_blocks = vec![
|
||||
let test_blocks = [
|
||||
include_str!("../../../test_data/babbage1.block"),
|
||||
include_str!("../../../test_data/babbage2.block"),
|
||||
include_str!("../../../test_data/babbage3.block"),
|
||||
|
|
|
|||
|
|
@ -829,7 +829,7 @@ mod tests {
|
|||
fn boundary_block_isomorphic_decoding_encoding() {
|
||||
type BlockWrapper = (u16, EbBlock);
|
||||
|
||||
let test_blocks = vec![include_str!("../../../test_data/genesis.block")];
|
||||
let test_blocks = [include_str!("../../../test_data/genesis.block")];
|
||||
|
||||
for (idx, block_str) in test_blocks.iter().enumerate() {
|
||||
println!("decoding test block {}", idx + 1);
|
||||
|
|
@ -849,7 +849,7 @@ mod tests {
|
|||
fn main_block_isomorphic_decoding_encoding() {
|
||||
type BlockWrapper<'b> = (u16, MintedBlock<'b>);
|
||||
|
||||
let test_blocks = vec![
|
||||
let test_blocks = [
|
||||
//include_str!("../../../test_data/genesis.block"),
|
||||
include_str!("../../../test_data/byron1.block"),
|
||||
include_str!("../../../test_data/byron2.block"),
|
||||
|
|
@ -876,7 +876,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn header_isomorphic_decoding_encoding() {
|
||||
let subjects = vec![include_str!("../../../test_data/byron1.header")];
|
||||
let subjects = [include_str!("../../../test_data/byron1.header")];
|
||||
|
||||
for (idx, str) in subjects.iter().enumerate() {
|
||||
println!("decoding test header {}", idx + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue