diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-04-15 00:35:49 +0200 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2016-04-25 22:24:18 +0200 |
commit | c3b759273c95f9d38ecde2d36ecb0350f9cc4bff (patch) | |
tree | 7287d915d8b892074d2a4948bb182f860930de60 /testdata/integration/basic_functionality/constant.out.osxml | |
parent | fe60003d417002634d8c7a8e35a63c4cbdb897b3 (diff) |
Added integration tests for constant resolution
Diffstat (limited to 'testdata/integration/basic_functionality/constant.out.osxml')
-rw-r--r-- | testdata/integration/basic_functionality/constant.out.osxml | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/testdata/integration/basic_functionality/constant.out.osxml b/testdata/integration/basic_functionality/constant.out.osxml new file mode 100644 index 0000000..12f8247 --- /dev/null +++ b/testdata/integration/basic_functionality/constant.out.osxml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<document> + <ontology name="test"> + <struct name="test" root="true"> + <field> + <childRef ref="a"/> + <childRef ref="b"/> + </field> + </struct> + <struct name="a"> + <primitive type="color.color"/> + </struct> + <struct name="b"> + <primitive type="color.multipleColors"/> + </struct> + </ontology> + <typesystem name="color"> + <struct name="color"> + <field name="r" type="int"/> + <field name="g" type="int"/> + <field name="b" type="int"/> + </struct> + <struct name="multipleColors"> + <field default="[ + 0, + 255, + 0 +]" name="c1" type="color"/> + <field default="[ + 255, + 0, + 0 +]" name="c2" type="color"/> + </struct> + <constant name="green" type="color" value="[ + 0, + 255, + 0 +]"/> + <constant name="red" type="color" value="[ + 255, + 0, + 0 +]"/> + </typesystem> + <test:test> + <test:a>[ + "b"= 0, + "g"= 0, + "r"= 255 +]</test:a> + <test:a>[ + "b"= 0, + "g"= 255, + "r"= 0 +]</test:a> + <test:b>[ + "c1"= [ + 0, + 255, + 0 + ], + "c2"= [ + 100, + 20, + 30 + ] +]</test:b> + </test:test> +</document> |