Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing vector tests size_limit_ok #17

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading