diff options
Diffstat (limited to 'tests/in')
-rw-r--r-- | tests/in/com.pelagicore.test.qface | 15 | ||||
-rw-r--r-- | tests/in/values.qface | 13 |
2 files changed, 20 insertions, 8 deletions
diff --git a/tests/in/com.pelagicore.test.qface b/tests/in/com.pelagicore.test.qface index ae8a4f0..a5be518 100644 --- a/tests/in/com.pelagicore.test.qface +++ b/tests/in/com.pelagicore.test.qface @@ -2,13 +2,12 @@ module com.pelagicore.test 1.0; import common 1.0; -@service: { singleton: true} interface ContactService { State state; - int intValue; - readonly string stringValue; - bool boolValue; - real realValue; + int intValue = "2"; + readonly string stringValue = "hello"; + bool boolValue = "true"; + real realValue = "0.1"; var varValue; Contact currentContact; common.Date today; @@ -39,7 +38,7 @@ flag Phase { * The contact information */ struct Contact { - string name; - int age; - bool isMarried; + string name = "name"; + int age = "99"; + bool isMarried = "false"; } diff --git a/tests/in/values.qface b/tests/in/values.qface new file mode 100644 index 0000000..3b7035d --- /dev/null +++ b/tests/in/values.qface @@ -0,0 +1,13 @@ +module values 1.0 + +interface Namespace { + int intValue = "99" + real realValue = "0.99" + string message = "foo" + Person person = '{ name: "Hello", age: 101 }' +} + +struct Person { + string name = "hello"; + int age = "99"; +}
\ No newline at end of file |