package br.gov.extrema.agenteti

import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test

class ActivationValidationTest {
    private val pattern=Regex("[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}")
    @Test fun acceptsInstitutionalCode(){assertTrue(pattern.matches("F52A-91BC-729D"))}
    @Test fun rejectsMalformedCode(){assertFalse(pattern.matches("INVALIDO"))}
}
