Skip to content

Commit 27520c5

Browse files
committed
fix: standardize test function naming conventions
1 parent ab3d7ec commit 27520c5

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

lib/createx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit cbac803268835138f86a69bfe01fcf05a50e0447

test/RLCOFT.t.sol

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ contract RLCOFTTest is Test {
5555
}
5656

5757
// ============ Deployment Tests ============
58-
function testDeployment() public {
58+
function test_Deployment() public {
5959
assertEq(rlcOft.name(), "RLC OFT Test");
6060
assertEq(rlcOft.symbol(), "RLCT");
6161
assertEq(rlcOft.decimals(), 9);
@@ -79,7 +79,7 @@ contract RLCOFTTest is Test {
7979
rlcOft.pause();
8080
}
8181

82-
function testUnpauseByPauser() public {
82+
function test_UnpauseByPauser() public {
8383
// First pause
8484
vm.prank(pauser);
8585
rlcOft.pause();
@@ -95,7 +95,7 @@ contract RLCOFTTest is Test {
9595
assertFalse(rlcOft.paused());
9696
}
9797

98-
function testUnpauseUnauthorized() public {
98+
function test_UnpauseUnauthorized() public {
9999
vm.prank(pauser);
100100
rlcOft.pause();
101101

@@ -114,7 +114,7 @@ contract RLCOFTTest is Test {
114114
rlcOft.transfer(user2, 100 * 10 ** 9);
115115
}
116116

117-
function testTransferFromWhenPaused() public {
117+
function test_TransferFromWhenPaused() public {
118118
// First approve
119119
vm.prank(user1);
120120
rlcOft.approve(user2, 100 * 10 ** 9);
@@ -129,7 +129,7 @@ contract RLCOFTTest is Test {
129129
rlcOft.transferFrom(user1, user2, 100 * 10 ** 9);
130130
}
131131

132-
function testMintWhenPaused() public {
132+
function test_MintWhenPaused() public {
133133
// Pause the contract
134134
vm.prank(pauser);
135135
rlcOft.pause();
@@ -140,7 +140,7 @@ contract RLCOFTTest is Test {
140140
rlcOft.mint(user1, 100 * 10 ** 9);
141141
}
142142

143-
function testBurnWhenPaused() public {
143+
function test_BurnWhenPaused() public {
144144
// Pause the contract
145145
vm.prank(pauser);
146146
rlcOft.pause();
@@ -151,7 +151,7 @@ contract RLCOFTTest is Test {
151151
rlcOft.burn(100 * 10 ** 9);
152152
}
153153

154-
function testTransferWhenNotPaused() public {
154+
function test_TransferWhenNotPaused() public {
155155
uint256 transferAmount = 100 * 10 ** 9;
156156
uint256 initialBalance1 = rlcOft.balanceOf(user1);
157157
uint256 initialBalance2 = rlcOft.balanceOf(user2);

0 commit comments

Comments
 (0)