Skip to content

Commit 775f238

Browse files
committed
Create ExtraPrefixTest.kt
Added test for extra prefixes
1 parent c3f5822 commit 775f238

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package no.uio.microobject.test.basic
2+
3+
import io.kotest.matchers.shouldBe
4+
import no.uio.microobject.test.MicroObjectTest
5+
6+
class ExtraPrefixTest: MicroObjectTest() {
7+
fun prefixTest() {
8+
val (interpreter,_) = initInterpreter("persons", StringLoad.RES)
9+
10+
interpreter.settings.prefixMap().containsKey("ast") shouldBe false
11+
interpreter.settings.addPrefixes(hashMapOf("ast" to "http://www.smolang.org/ast#"))
12+
interpreter.settings.prefixMap().containsKey("ast") shouldBe true
13+
}
14+
init {
15+
prefixTest()
16+
}
17+
}

0 commit comments

Comments
 (0)