🚧」 test: testing things, might broke.

This commit is contained in:
2025-07-24 15:31:54 +02:00
parent 622548f678
commit 9a7fbec3cb
2 changed files with 20 additions and 1 deletions

View File

@ -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
View 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);
}
}