THRIFT-2951 Fix Erlang name conflict test
Patch: Nobuaki Sukegawa
This closes #360
----
commit 06cc3e990ade560461a276991ce9cb544706dae3
Author: Nobuaki Sukegawa <nsukeg@gmail.com>
Date: 2015-01-27T18:11:40Z
THRIFT-2951 Fix Erlang name conflict test
----
diff --git a/test/erl/src/name_conflict_test.erl b/test/erl/src/name_conflict_test.erl
index a38eff0..5576ffa 100644
--- a/test/erl/src/name_conflict_test.erl
+++ b/test/erl/src/name_conflict_test.erl
@@ -39,7 +39,7 @@
#get{sbyte=null}
)},
{"partial record", ?_assertMatch(
- {partial, _},
+ {partial, _, _, _},
#partial{using=null}
)},
{"ClassAndProp record", ?_assertMatch(
@@ -119,7 +119,11 @@
name_conflict_test_types:struct_info(get)
)},
{"partial definition", ?_assertEqual(
- {struct, [{1, {struct, {name_conflict_test_types, using}}}]},
+ {struct, [
+ {1, {struct, {name_conflict_test_types, using}}},
+ {2, bool},
+ {3, bool}
+ ]},
name_conflict_test_types:struct_info(partial)
)},
{"ClassAndProp definition", ?_assertEqual(
@@ -177,7 +181,9 @@
)},
{"partial extended definition", ?_assertEqual(
{struct, [
- {1, undefined, {struct, {name_conflict_test_types, using}}, using, #using{}}
+ {1, undefined, {struct, {name_conflict_test_types, using}}, using, #using{}},
+ {2, undefined, bool, read, undefined},
+ {3, undefined, bool, write, undefined}
]},
name_conflict_test_types:struct_info_ext(partial)
)},