Skip to content

Commit

Permalink
fix tests, update from 2.7.0 to 2.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
loothero committed Sep 20, 2024
1 parent 4b4ce29 commit 1450231
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name = "beasts"
version = "0.1.0"

[dependencies]
starknet = "2.7.0"
starknet = "2.7.1"
openzeppelin_token = { git = "https://github.com/OpenZeppelin/cairo-contracts", tag = "v0.15.1" }
openzeppelin_introspection = { git = "https://github.com/OpenZeppelin/cairo-contracts", tag = "v0.15.1" }

[scripts]
test = "scarb cairo-test"
[dev-dependencies]
cairo_test = "2.7.1"
3 changes: 1 addition & 2 deletions src/beast.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -4098,7 +4098,6 @@ mod tests {
}

#[test]
#[available_gas(11125360)]
fn test_get_content() {
let beast = PackableBeast { id: 1, prefix: 1, suffix: 1, level: 1, health: 1 };

Expand All @@ -4110,7 +4109,7 @@ mod tests {
}
let segment = *content.at(i);
// Uncomment to view content
//segment.print();
println!("Segment: {:?}", segment);
i += 1;
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/pack.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,14 @@ mod pow {

#[cfg(test)]
mod tests {
use super::{PackableBeast, PackPackable};

#[test]
#[available_gas(180960)]
fn test_pack_and_unpack_gas() {
let beast = PackableBeast { id: 1, prefix: 2, suffix: 3, level: 4, health: 5 };
let packed = PackPackable::pack(beast);
let unpacked = PackPackable::unpack(packed);
PackPackable::unpack(packed);
}

#[test]
Expand Down

0 comments on commit 1450231

Please sign in to comment.