blob: 92d38ebc9b819f4d7b5821a7696ad7e892f22961 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// 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<AraraException> {
Language("quack")
}
}
})
|