summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'testdata')
-rw-r--r--testdata/integration/ontology_serialization/typesystem.in.osml6
-rw-r--r--testdata/integration/ontology_serialization/typesystem.out.osxml8
2 files changed, 11 insertions, 3 deletions
diff --git a/testdata/integration/ontology_serialization/typesystem.in.osml b/testdata/integration/ontology_serialization/typesystem.in.osml
index 3adbe2e..1f0ccd5 100644
--- a/testdata/integration/ontology_serialization/typesystem.in.osml
+++ b/testdata/integration/ontology_serialization/typesystem.in.osml
@@ -1,8 +1,10 @@
\document
\typesystem#bla
- \struct#myStruct
+ \struct#myParentStruct
\field#i[type=int,default=1]
+ \struct#myStruct[parent=myParentStruct]
\field#s[type=string,default=""]
+ \constant#C[type=myStruct, value=[4,"bla"]]
\enum#myEnum
\entry STRICT
\entry FUZZY
@@ -13,4 +15,4 @@
\attribute#type[type=myEnum]
\primitive[type=myStruct]
-\a[type=STRICT] [4,"bla"]
+\a[type=STRICT] C
diff --git a/testdata/integration/ontology_serialization/typesystem.out.osxml b/testdata/integration/ontology_serialization/typesystem.out.osxml
index e3652e3..a822191 100644
--- a/testdata/integration/ontology_serialization/typesystem.out.osxml
+++ b/testdata/integration/ontology_serialization/typesystem.out.osxml
@@ -12,8 +12,10 @@
</struct>
</ontology>
<typesystem name="bla">
- <struct name="myStruct">
+ <struct name="myParentStruct">
<field default="1" name="i" type="int"/>
+ </struct>
+ <struct name="myStruct" parent="myParentStruct">
<field default="" name="s" type="string"/>
</struct>
<enum name="myEnum">
@@ -21,6 +23,10 @@
<entry>PROBABILISTIC</entry>
<entry>STRICT</entry>
</enum>
+ <constant name="C" type="myStruct" value="[
+ 4,
+ &quot;bla&quot;
+]"/>
</typesystem>
<test:a type="0">[
&quot;i&quot;= 4,