Skip to content

Commit 1620415

Browse files
authored
test: add version function test (#438)
1 parent 0f2aec9 commit 1620415

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/contracts-bedrock/test/governance/ProposalValidator.t.sol

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,15 @@ contract ProposalValidator_CanApproveProposal_Test is ProposalValidator_Init {
887887
}
888888
}
889889

890+
/// @title ProposalValidator_Version_Test
891+
/// @notice Tests for the version function
892+
contract ProposalValidator_Version_Test is ProposalValidator_Init {
893+
function test_version_succeeds() public {
894+
string memory versionString = validator.version();
895+
assertEq(versionString, "1.0.0-beta.1");
896+
}
897+
}
898+
890899
/// @title ProposalValidator_Setters_Test
891900
/// @notice Tests for setter functions
892901
contract ProposalValidator_Setters_Test is ProposalValidator_Init {

0 commit comments

Comments
 (0)