diff --git a/apis/fluent-en_GB/atrium-api-fluent-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/fluent/en_GB/samples/LocalDateTimeExpectationSamples.kt b/apis/fluent-en_GB/atrium-api-fluent-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/fluent/en_GB/samples/LocalDateTimeExpectationSamples.kt index a74553212a..2e17021319 100644 --- a/apis/fluent-en_GB/atrium-api-fluent-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/fluent/en_GB/samples/LocalDateTimeExpectationSamples.kt +++ b/apis/fluent-en_GB/atrium-api-fluent-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/fluent/en_GB/samples/LocalDateTimeExpectationSamples.kt @@ -13,6 +13,7 @@ class LocalDateTimeExpectationSamples { fun year() { expect(LocalDateTime.of(2021, Month.OCTOBER, 9, 11, 56)) .year { + // subject inside this block is of type Int (actually 2021) toEqual(2021) toBeGreaterThan(2020) } @@ -20,6 +21,7 @@ class LocalDateTimeExpectationSamples { fails { expect(LocalDateTime.of(2021, Month.OCTOBER, 9, 11, 56)) .year { + // subject inside this block is of type Int (actually 2021) notToEqual(2022) toBeGreaterThan(2022) toBeLessThan(2020) @@ -31,6 +33,7 @@ class LocalDateTimeExpectationSamples { fun month() { expect(LocalDateTime.of(2021, Month.OCTOBER, 9, 11, 56)) .month { + // subject inside this block is of type Int (actually Month.OCTOBER.value i.e. 10) toEqual(Month.OCTOBER.value) notToEqual(Month.SEPTEMBER.value) } @@ -38,6 +41,7 @@ class LocalDateTimeExpectationSamples { fails { expect(LocalDateTime.of(2021, Month.OCTOBER, 9, 11, 56)) .month { + // subject inside this block is of type Int (actually Month.OCTOBER.value i.e. 10) toEqual(Month.SEPTEMBER.value) notToEqual(Month.OCTOBER.value) } @@ -48,6 +52,7 @@ class LocalDateTimeExpectationSamples { fun dayOfWeek() { expect(LocalDateTime.of(2021, Month.OCTOBER, 9, 11, 56)) .dayOfWeek { + // subject inside this block is of type DayOfWeek (actually SATURDAY) toEqual(DayOfWeek.SATURDAY) notToEqual(DayOfWeek.SUNDAY) } @@ -55,6 +60,7 @@ class LocalDateTimeExpectationSamples { fails { expect(LocalDateTime.of(2021, Month.OCTOBER, 9, 11, 56)) .dayOfWeek { + // subject inside this block is of type DayOfWeek (actually SATURDAY) toEqual(DayOfWeek.MONDAY) notToEqual(DayOfWeek.SATURDAY) } @@ -65,6 +71,7 @@ class LocalDateTimeExpectationSamples { fun day() { expect(LocalDateTime.of(2021, Month.OCTOBER, 9, 11, 56)) .day { + // subject inside this block is of type Int (actually 9) toEqual(9) toBeGreaterThan(5) } @@ -72,6 +79,7 @@ class LocalDateTimeExpectationSamples { fails { expect(LocalDateTime.of(2021, Month.OCTOBER, 9, 11, 56)) .day { + // subject inside this block is of type Int (actually 9) toEqual(5) toBeLessThan(7) } diff --git a/apis/infix-en_GB/atrium-api-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/infix/en_GB/samples/LocalDateTimeExpectationSamples.kt b/apis/infix-en_GB/atrium-api-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/infix/en_GB/samples/LocalDateTimeExpectationSamples.kt index d263dd8bf5..38a14f85e2 100644 --- a/apis/infix-en_GB/atrium-api-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/infix/en_GB/samples/LocalDateTimeExpectationSamples.kt +++ b/apis/infix-en_GB/atrium-api-infix-en_GB-jvm/src/test/kotlin/ch/tutteli/atrium/api/infix/en_GB/samples/LocalDateTimeExpectationSamples.kt @@ -12,12 +12,14 @@ class LocalDateTimeExpectationSamples { @Test fun year() { expect(LocalDateTime.of(2021, Month.OCTOBER, 9, 11, 56)) year { + // subject inside this block is of type Int (actually 2021) it toEqual 2021 it toBeGreaterThan 2020 } fails { expect(LocalDateTime.of(2021, Month.OCTOBER, 9, 11, 56)) year { + // subject inside this block is of type Int (actually 2021) it notToEqual 2022 it toBeGreaterThan 2022 it toBeLessThan 2020 @@ -28,12 +30,14 @@ class LocalDateTimeExpectationSamples { @Test fun month() { expect(LocalDateTime.of(2021, Month.OCTOBER, 9, 11, 56)) month { + // subject inside this block is of type Int (actually Month.OCTOBER.value i.e. 10) it toEqual Month.OCTOBER.value it notToEqual Month.SEPTEMBER.value } fails { expect(LocalDateTime.of(2021, Month.OCTOBER, 9, 11, 56)) month { + // subject inside this block is of type Int (actually Month.OCTOBER.value i.e. 10) it toEqual Month.SEPTEMBER.value it notToEqual Month.OCTOBER.value } @@ -43,12 +47,14 @@ class LocalDateTimeExpectationSamples { @Test fun dayOfWeek() { expect(LocalDateTime.of(2021, Month.OCTOBER, 9, 11, 56)) dayOfWeek { + // subject inside this block is of type DayOfWeek (actually SATURDAY) it toEqual DayOfWeek.SATURDAY it notToEqual DayOfWeek.SUNDAY } fails { expect(LocalDateTime.of(2021, Month.OCTOBER, 9, 11, 56)) dayOfWeek { + // subject inside this block is of type DayOfWeek (actually SATURDAY) it toEqual DayOfWeek.MONDAY it notToEqual DayOfWeek.SATURDAY } @@ -58,12 +64,14 @@ class LocalDateTimeExpectationSamples { @Test fun day() { expect(LocalDateTime.of(2021, Month.OCTOBER, 9, 11, 56)) day { + // subject inside this block is of type Int (actually 9) it toEqual 9 it toBeGreaterThan 5 } fails { expect(LocalDateTime.of(2021, Month.OCTOBER, 9, 11, 56)) day { + // subject inside this block is of type Int (actually 9) it toEqual 5 it toBeLessThan 7 }