Skip to content

Commit

Permalink
Fxing vector tests size_limit_ok (#17)
Browse files Browse the repository at this point in the history
040824-fixing-vector-tests-size_limit_ok-1: iini
  • Loading branch information
jcivlin authored Apr 9, 2024
1 parent 610de11 commit 4387149
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -552,13 +552,12 @@ module std::vector_tests {
V::insert(&mut v, 6, 2);
}

// todo solana
//#[test]
#[test]
fun size_limit_ok() {
let v = V::empty();
let i = 0;
// Limit is currently 1024 * 1024
let max_len = 1024 * 1024;
// Solana limit is 1024 * 2, while Sui's is 1024 * 1024
let max_len = 1024 * 2; // Good!

while (i < max_len) {
V::push_back(&mut v, i);
Expand Down

0 comments on commit 4387149

Please sign in to comment.