mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-08-14 04:22:54 +02:00
「🚧」 test: testing things, might broke.
This commit is contained in:
@ -2,4 +2,10 @@
|
||||
|
||||
pragma solidity ^0.8;
|
||||
|
||||
contract scoreStore {}
|
||||
contract scoreStore {
|
||||
uint16 test = 0;
|
||||
|
||||
function up(uint16 plus) public {
|
||||
test += plus;
|
||||
}
|
||||
}
|
||||
|
13
test/main.t.sol
Normal file
13
test/main.t.sol
Normal file
@ -0,0 +1,13 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pragma solidity ^0.8;
|
||||
|
||||
import "src/contract/main.sol";
|
||||
import "forge-std/Test.sol";
|
||||
|
||||
contract mainTest is Test, scoreStore {
|
||||
function testUp() public {
|
||||
up(2);
|
||||
assertEq(test, 2);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user