rshuge.myintlist=range(10000)
my_zero = Srv.Janky_result({"arg":5})
-my_nega = Srv.Janky_args({"success":6})
def checkWrite(o):
trans_fast = TTransport.TMemoryBuffer()
checkWrite(my_zero)
checkRead(my_zero)
checkRead(Backwards({"first_tag2":4, "second_tag1":2}))
- try:
- checkWrite(my_nega)
- print "Hey, did this get fixed?"
- except AttributeError:
- # Sorry, doesn't work with negative tags.
- pass
# One case where the serialized form changes, but only superficially.
o = Backwards({"first_tag2":4, "second_tag1":2})
map<UserId, map<Numberz,Insanity>> testInsanity(1: Insanity argument),
/* Multiple parameters */
- Xtruct testMulti(byte arg0, i32 arg1, i64 arg2, map<i16, string> arg3, Numberz arg4, UserId arg5),
+ Xtruct testMulti(1: byte arg0, 2: i32 arg1, 3: i64 arg2, 4: map<i16, string> arg3, 5: Numberz arg4, 6: UserId arg5),
/* Exception specifier */
- void testException(string arg) throws(Xception err1),
+ void testException(1: string arg) throws(1: Xception err1),
/* Multiple exceptions specifier */
- Xtruct testMultiException(string arg0, string arg1) throws(Xception err1, Xception2 err2)
+ Xtruct testMultiException(1: string arg0, 2: string arg1) throws(1: Xception err1, 2: Xception2 err2)
/* Test oneway void */
oneway void testOneway(1:i32 secondsToSleep)