1 package net.pterodactylus.sone.utils
3 import org.hamcrest.MatcherAssert.assertThat
4 import org.hamcrest.Matchers.contains
5 import org.hamcrest.Matchers.empty
9 * Unit test for Object utils.
14 fun `non-null value is turned into a list with one element`() {
15 assertThat(5.asList(), contains(5))
19 fun `null value is turned into empty list`() {
20 assertThat(null.asList(), empty())