我有一个我正在尝试使用dapptools测试的功能列表,但我只想测试一个。我该如何做到这一点?
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "../DappLottery.sol";
import "ds-test/test.sol";
contract DappLotteryTest is DSTest {
DappLottery public dappLottery;
function setUp() public {
dappLottery = new DappLottery();
}
function test_consumer_can_start_lottery() public {
bool response = dappLottery.startLottery();
assertTrue(response);
}
function test_consumer_can_end_lottery() public {
bool response = dappLottery.end();
assertTrue(response);
}
}