[KT-43265] Add reproducer to tests.

This commit is contained in:
Sergey Bogolepov
2020-11-10 15:36:56 +07:00
committed by Stanislav Erokhin
parent 75d64261f4
commit c0a83f48bf
3 changed files with 23 additions and 0 deletions
@@ -0,0 +1,7 @@
strictEnums = bcm2835FunctionSelect
---
enum bcm2835FunctionSelect {
BCM2835_GPIO_FSEL_INPT = 0x00, BCM2835_GPIO_FSEL_OUTP = 0x01, BCM2835_GPIO_FSEL_ALT0 = 0x04, BCM2835_GPIO_FSEL_ALT1 = 0x05,
BCM2835_GPIO_FSEL_ALT2 = 0x06, BCM2835_GPIO_FSEL_ALT3 = 0x07, BCM2835_GPIO_FSEL_ALT4 = 0x03, BCM2835_GPIO_FSEL_ALT5 = 0x02,
BCM2835_GPIO_FSEL_MASK = 0x07
};
@@ -0,0 +1,6 @@
import kt43265.*
import kotlin.test.*
fun main() {
assertEquals(bcm2835FunctionSelect.BCM2835_GPIO_FSEL_ALT3, bcm2835FunctionSelect.BCM2835_GPIO_FSEL_MASK)
}