A potentially even more interesting case is the be...
# announcements
r
A potentially even more interesting case is the below where the 1st test passes and the 2nd fails though they should be the equivalent of one another:
Copy code
class ByteDelegateTest {

    private var uInt = 0xA1B2C3u
    private var b1: UByte by byteDelegate(0, this::uInt)

    @Test
    fun `Passing`() {
        val expected: UByte = 0xC3u
        val actual = b1
        assertEquals(expected, actual)
    }

    @Test
    fun `Failing`() {
        val expected: UByte = 0xC3u
        assertEquals(expected, b1)
    }