π Overview
Expand test coverage for the market module by adding 3 new tests (Part 2 of 2).
β
Tasks
π§ͺ New Tests (3 total)
Test 1: List Markets With Filters
#[test]
fn test_list_markets_with_filters() {
// Create markets with different categories
// List markets filtered by category
// Verify only matching markets are returned
}
Test 2: Market Creator Fee
#[test]
fn test_market_creator_fee_collection() {
// Create market with creator fee
// Make predictions
// Resolve market
// Verify creator receives fee
}
Test 3: Private Market Access
#[test]
fn test_private_market_access_control() {
// Create private market
// Try to predict without invite
// Should fail
// Use invite code
// Should succeed
}
π Verification
π Overview
Expand test coverage for the market module by adding 3 new tests (Part 2 of 2).
β Tasks
contract/tests/market_tests.rsπ§ͺ New Tests (3 total)
Test 1: List Markets With Filters
Test 2: Market Creator Fee
Test 3: Private Market Access
π Verification