-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,38 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity 0.8.25; | ||
|
||
import {Test} from "forge-std/Test.sol"; | ||
import {KSXVault} from "../src/KSXVault.sol"; | ||
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | ||
import {Test} from "forge-std/Test.sol"; | ||
import {Bootstrap, KSXVault} from "test/utils/Bootstrap.sol"; | ||
|
||
contract KSXVaultTest is Bootstrap { | ||
|
||
function setUp() public { | ||
MockERC20 depositToken = new MockERC20("Deposit Token", "DT"); | ||
initializeLocal(address(depositToken), PDAOADDR); | ||
} | ||
|
||
/** @PR:REVIEW no tests for vault **/ | ||
/** @PR:REVIEW add pDAO test **/ | ||
/** @PR:REVIEW add share name **/ | ||
/** @PR:REVIEW add share symbol **/ | ||
/** @PR:REVIEW add use bootstrap everywhere instead of `Test` **/ | ||
function test_share_name() public { | ||
assertEq(ksxVault.name(), "KSX Vault"); | ||
} | ||
|
||
function test_share_symbol() public { | ||
assertEq(ksxVault.symbol(), "KSX"); | ||
} | ||
|
||
contract KSXVaultTest is Test { | ||
function setUp() public {} | ||
} | ||
|
||
contract MockERC20 is ERC20 { | ||
constructor(string memory name_, string memory symbol_) | ||
|
||
constructor( | ||
string memory name_, | ||
string memory symbol_ | ||
) | ||
ERC20(name_, symbol_) | ||
{} | ||
|
||
function mint(address to, uint256 amount) external { | ||
_mint(to, amount); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters