168168 < img
169169 src ="spock-main-logo.svg "
170170 alt ="Spock Framework Logo "
171- class ="h-64 w-auto mx-auto block logo-img "
172- >
171+ class ="h-64 w-auto mx-auto block logo-img ">
173172 </ div >
174173
175174 < h1 class ="text-4xl md:text-5xl lg:text-6xl font-bold mb-4 spock-blue-text ">
@@ -193,7 +192,7 @@ <h2 class="text-3xl md:text-4xl font-bold mb-8 text-gray-100" data-aos="fade-up"
193192 < a href ="https://groovyconsole.dev/?g=groovy_4_0&gist=437e9026ff86d2d709c2c56eb7e2eef1#g8qcDpYAQE " target ="_blank " class ="cta-button cta-primary ">
194193 Try it online
195194 </ a >
196- < a href ="http ://docs.spockframework.org " target ="_blank " class ="cta-button cta-secondary ">
195+ < a href ="https ://docs.spockframework.org " target ="_blank " class ="cta-button cta-secondary ">
197196 Read the Docs
198197 </ a >
199198 < a href ="https://github.com/spockframework/spock-example " target ="_blank " class ="cta-button cta-tertiary ">
@@ -251,11 +250,12 @@ <h3 class="text-xl font-semibold text-gray-100 mb-2">Built-in Matchers</h3>
251250 </ div >
252251</ section >
253252
254- < section class ="py-16 md:py-24 "> < div class ="container mx-auto px-6 ">
255- < h2 class ="text-3xl md:text-4xl font-bold text-center mb-12 text-gray-100 " data-aos ="fade-up ">
256- See How Readable Tests Can Be
257- </ h2 >
258- < div class ="max-w-3xl mx-auto " data-aos ="fade-up " data-aos-delay ="100 ">
253+ < section class ="py-16 md:py-24 ">
254+ < div class ="container mx-auto px-6 ">
255+ < h2 class ="text-3xl md:text-4xl font-bold text-center mb-12 text-gray-100 " data-aos ="fade-up ">
256+ See How Readable Tests Can Be
257+ </ h2 >
258+ < div class ="max-w-3xl mx-auto " data-aos ="fade-up " data-aos-delay ="100 ">
259259 < pre > < code class ="language-groovy "> < span class ="comment "> // CalculatorSpec.groovy</ span >
260260< span class ="keyword "> import</ span > spock.lang.Specification
261261
@@ -265,7 +265,7 @@ <h2 class="text-3xl md:text-4xl font-bold text-center mb-12 text-gray-100" data-
265265 < span class ="keyword "> given:</ span > < span class ="comment "> "A calculator instance"</ span >
266266 < span class ="keyword "> def</ span > calculator = < span class ="keyword "> new</ span > < span class ="class-name "> Calculator</ span > ()
267267
268- < span class ="keyword "> expect:</ span > < span class ="comment "> "The calculation should match the expected value"</ span > < span class =" comment " > // Changed from when/then </ span >
268+ < span class ="keyword "> expect:</ span > < span class ="comment "> "The calculation should match the expected value"</ span >
269269 calculator.calculate(a, b, operation) == expectedResult
270270
271271 < span class ="keyword "> where:</ span > < span class ="comment "> "Define test data"</ span >
@@ -375,8 +375,6 @@ <h3 class="text-xl font-semibold text-center mb-4 text-gray-100">Example Test Ou
375375 Try it online
376376 </ a >
377377 </ div >
378- </ div >
379- </ div >
380378</ section >
381379
382380< footer class ="py-8 text-center text-gray-400 text-sm ">
0 commit comments