mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2026-10-16 04:40:08 +02:00
「🏗️」 wip: started doing the api for the contract
This commit is contained in:
7 files changed
+151
-3
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
pragma solidity 0.8.28;
|
||||
|
||||
import "src/contract/main.sol";
|
||||
import "src/contract/scoreStore.sol";
|
||||
import "forge-std/Test.sol";
|
||||
|
||||
contract scoreStoreTest is Test {
|
||||
@@ -22,12 +22,12 @@ contract scoreStoreTest is Test {
|
||||
assertEq(s.p1Score, 5);
|
||||
assertEq(s.p2Score, 8);
|
||||
|
||||
id = scoreS.addScore("ahhhhh", "test", 5, 8);
|
||||
id = scoreS.addScore("ahhhhh", "test", 7, 8);
|
||||
|
||||
s = scoreS.getScore(id);
|
||||
assertEq(s.p1, "ahhhhh");
|
||||
assertEq(s.p2, "test");
|
||||
assertEq(s.p1Score, 5);
|
||||
assertEq(s.p1Score, 7);
|
||||
assertEq(s.p2Score, 8);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user