1 package net.pterodactylus.sone.utils
3 import org.hamcrest.MatcherAssert.assertThat
4 import org.hamcrest.Matchers.equalTo
5 import org.hamcrest.Matchers.nullValue
9 * Unit test for [Booleans].
14 fun `ifTrue is executed if boolean is true`() {
15 assertThat(true.ifTrue { true }, equalTo(true))
19 fun `ifTrue is not executed if boolean is false`() {
20 assertThat(false.ifTrue { true }, nullValue())