Add annotation tests for schema interface

This commit is contained in:
Jason Paryani
2014-11-19 08:10:51 -08:00
parent d97ec7723d
commit 977f471dec
2 changed files with 37 additions and 0 deletions

15
test/annotations.capnp Normal file
View File

@@ -0,0 +1,15 @@
@0xfb9a160831eee9bb;
struct AnnotationStruct {
test @0: Int32;
}
annotation test1(*): Text;
annotation test2(*): AnnotationStruct;
annotation test3(*): List(AnnotationStruct);
$test1("TestFile");
struct TestAnnotationOne $test1("Test") { }
struct TestAnnotationTwo $test2(test = 100) { }
struct TestAnnotationThree $test3([(test=100), (test=101)]) { }