// SPDX-License-Identifier: BSD-3-Clause package org.islandoftex.arara.localization import io.kotlintest.shouldBe import io.kotlintest.shouldThrow import io.kotlintest.specs.ShouldSpec import java.util.Locale import org.islandoftex.arara.model.AraraException class LanguageTest : ShouldSpec({ should("instantiate with known code") { Language("en").locale shouldBe Locale.ENGLISH } should("throw on unknown language") { shouldThrow { Language("quack") } } })