summaryrefslogtreecommitdiff
path: root/test/JsDeepConstructorTest.thrift
diff options
context:
space:
mode:
authorHenrique Mendonça <henrique@apache.org>2015-05-27 22:15:46 +1000
committerHenrique Mendonça <henrique@apache.org>2015-05-27 22:15:46 +1000
commit1568aef7d499153469131449ec682998598f0d3c (patch)
tree40fbe11ee1a3f20dbd76a944dd6a1251b74c06a0 /test/JsDeepConstructorTest.thrift
parent549a9e1e6dfbfaf1f7685dc5e26440c501517738 (diff)
downloadthrift-1568aef7d499153469131449ec682998598f0d3c.tar.gz
THRIFT-3122 Javascript struct constructor should properly initialize struct and container members from plain js arguments
Client: Node and JS Patch: Igor Tkach This closes #476
Diffstat (limited to 'test/JsDeepConstructorTest.thrift')
-rw-r--r--test/JsDeepConstructorTest.thrift12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/JsDeepConstructorTest.thrift b/test/JsDeepConstructorTest.thrift
new file mode 100644
index 000000000..9150854b2
--- /dev/null
+++ b/test/JsDeepConstructorTest.thrift
@@ -0,0 +1,12 @@
+struct Simple {
+ 1: string value
+}
+
+struct Complex {
+ 1: Simple struct_field
+ 2: list<Simple> struct_list_field
+ 3: set<Simple> struct_set_field
+ 4: map<string,Simple> struct_map_field
+ 5: list<set<map<string,list<Simple>>>> struct_nested_containers_field
+ 6: map<string, list<map<string,Simple>> > struct_nested_containers_field2
+}