Skip to content

Commit

Permalink
add positive case for test
Browse files Browse the repository at this point in the history
  • Loading branch information
giunatale committed Sep 24, 2024
1 parent 3824716 commit 68e8ee4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions x/gov/keeper/constitution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ func TestApplyConstitutionAmendment(t *testing.T) {
amendment: "Hi World",
expectError: true,
},
{
name: "successful patch application",
initialConstitution: "Hello\nWorld",
amendment: "@@ -1,2 +1,2 @@\n-Hello\n+Hi\n World",
expectError: false,
expectedResult: "Hi\nWorld",
},
}

for _, tt := range tests {
Expand Down

0 comments on commit 68e8ee4

Please sign in to comment.