File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ <h2 class="text-3xl md:text-4xl font-bold text-center mb-12 text-gray-100" data-
175175 calculator.calculate(< span class ="number "> 10</ span > , < span class ="number "> 0</ span > , < span class ="string "> "/"</ span > )
176176
177177 < span class ="keyword "> then:</ span > < span class ="comment "> "An IllegalArgumentException is thrown"</ span >
178- < span class ="keyword " > def </ span > exception = thrown(< span class =" class-name " > IllegalArgumentException </ span > )
178+ < span class ="class-name " > IllegalArgumentException </ span > exception = thrown()
179179
180180 < span class ="keyword "> and:</ span > < span class ="comment "> "The exception message is correct"</ span >
181181 exception.message == < span class ="string "> "Cannot divide by zero"</ span >
@@ -189,7 +189,7 @@ <h2 class="text-3xl md:text-4xl font-bold text-center mb-12 text-gray-100" data-
189189 calculator.calculate(< span class ="number "> 1</ span > , < span class ="number "> 2</ span > , < span class ="string "> "**"</ span > )
190190
191191 < span class ="keyword "> then:</ span > < span class ="comment "> "An IllegalArgumentException is thrown"</ span >
192- < span class ="keyword " > def </ span > exception = thrown(< span class =" class-name " > IllegalArgumentException </ span > )
192+ < span class ="class-name " > IllegalArgumentException </ span > exception = thrown()
193193
194194 < span class ="keyword "> and:</ span > < span class ="comment "> "The exception message is correct"</ span >
195195 exception.message == < span class ="string "> "Invalid operation: **"</ span >
You can’t perform that action at this time.
0 commit comments