Skip to content

Commit

Permalink
missing pretty assertions (#1511)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaughterOfMars authored Oct 25, 2023
1 parent 8da2b12 commit 04e9ea8
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions sdk/src/types/block/context_input/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ impl ContextInput {

#[cfg(test)]
mod tests {
use pretty_assertions::assert_eq;

use super::ContextInput;

Expand Down
2 changes: 2 additions & 0 deletions sdk/src/types/block/mana/parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ const fn fixed_point_multiply(value: u64, mult_factor: u32, shift_factor: u8) ->

#[cfg(test)]
mod test {
use pretty_assertions::assert_eq;

use super::*;

// Tests from https://github.com/iotaledger/iota.go/blob/develop/mana_decay_provider_test.go
Expand Down
2 changes: 2 additions & 0 deletions sdk/src/types/block/slot/epoch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ impl core::ops::SubAssign<u32> for EpochIndex {

#[cfg(test)]
mod test {
use pretty_assertions::assert_eq;

use super::*;
use crate::types::block::protocol::ProtocolParameters;

Expand Down
2 changes: 2 additions & 0 deletions sdk/src/types/block/slot/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ impl From<SlotIndex> for u32 {

#[cfg(test)]
mod test {
use pretty_assertions::assert_eq;

use crate::types::block::protocol::ProtocolParameters;

#[test]
Expand Down
1 change: 1 addition & 0 deletions sdk/src/utils/merkle_hasher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ mod tests {
use core::str::FromStr;

use crypto::hashes::blake2b::Blake2b256;
use pretty_assertions::assert_eq;

use super::*;
use crate::types::block::BlockId;
Expand Down
1 change: 1 addition & 0 deletions sdk/tests/types/address/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use iota_sdk::types::block::{
output::AccountId,
};
use packable::PackableExt;
use pretty_assertions::assert_eq;
use serde_json::json;

const ACCOUNT_ID: &str = "0xe9ba80ad1561e437b663a1f1efbfabd544b0d7da7bb33e0a62e99b20ee450bee";
Expand Down
1 change: 1 addition & 0 deletions sdk/tests/types/address/restricted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use iota_sdk::types::block::{
rand::address::rand_ed25519_address,
};
use packable::PackableExt;
use pretty_assertions::assert_eq;

#[test]
fn capabilities() {
Expand Down
1 change: 1 addition & 0 deletions sdk/tests/types/output/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use iota_sdk::types::{
ValidationParams,
};
use packable::PackableExt;
use pretty_assertions::assert_eq;

#[test]
fn builder() {
Expand Down
1 change: 1 addition & 0 deletions sdk/tests/types/output/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use iota_sdk::types::{
ValidationParams,
};
use packable::PackableExt;
use pretty_assertions::assert_eq;

#[test]
fn builder() {
Expand Down
1 change: 1 addition & 0 deletions sdk/tests/types/output/foundry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use iota_sdk::types::block::{
},
};
use packable::PackableExt;
use pretty_assertions::assert_eq;

#[test]
fn builder() {
Expand Down
1 change: 1 addition & 0 deletions sdk/tests/types/output/nft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use iota_sdk::types::block::{
},
};
use packable::PackableExt;
use pretty_assertions::assert_eq;

#[test]
fn builder() {
Expand Down
1 change: 1 addition & 0 deletions sdk/tests/types/unlock/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use iota_sdk::types::block::{unlock::AccountUnlock, Error};
use packable::{bounded::InvalidBoundedU16, PackableExt};
use pretty_assertions::assert_eq;

#[test]
fn kind() {
Expand Down

0 comments on commit 04e9ea8

Please sign in to comment.