We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3f5822 commit 775f238Copy full SHA for 775f238
src/test/kotlin/no/uio/microobject/test/basic/ExtraPrefixTest.kt
@@ -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