From 00c58620130e7b0f09c56e3df3fed3b842ca4e46 Mon Sep 17 00:00:00 2001 From: Ingrid Novak Date: Sun, 19 May 2024 19:25:43 +0300 Subject: [PATCH] fixed code block style --- versioned_docs/version-1/spark/writing-tests.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/versioned_docs/version-1/spark/writing-tests.md b/versioned_docs/version-1/spark/writing-tests.md index 55007de..eefec54 100644 --- a/versioned_docs/version-1/spark/writing-tests.md +++ b/versioned_docs/version-1/spark/writing-tests.md @@ -71,11 +71,10 @@ A good practice is to use the pattern `test_Revert[If|When]_Condition` in combin Now, instead of using `testFail`, you know exactly what reverted and with which error: - ```solidity - function test_CannotSubtract43() public { - vm.expectRevert(stdError.arithmeticError); - testNumber -= 43; - +```solidity +function test_CannotSubtract43() public { + vm.expectRevert(stdError.arithmeticError); + testNumber -= 43; } ```