You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2013/06/11 11:18:54 UTC
svn commit: r1491714 - in /qpid/proton/trunk:
proton-c/include/proton/codec.h tests/python/proton_tests/codec.py
Author: rhs
Date: Tue Jun 11 09:18:53 2013
New Revision: 1491714
URL: http://svn.apache.org/r1491714
Log:
PROTON-325: modified type enum so that PN_NULL is no longer false; added a test that includes a list with a null in the middle
Modified:
qpid/proton/trunk/proton-c/include/proton/codec.h
qpid/proton/trunk/tests/python/proton_tests/codec.py
Modified: qpid/proton/trunk/proton-c/include/proton/codec.h
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/include/proton/codec.h?rev=1491714&r1=1491713&r2=1491714&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/include/proton/codec.h (original)
+++ qpid/proton/trunk/proton-c/include/proton/codec.h Tue Jun 11 09:18:53 2013
@@ -37,31 +37,31 @@ extern "C" {
#endif
typedef enum {
- PN_NULL,
- PN_BOOL,
- PN_UBYTE,
- PN_BYTE,
- PN_USHORT,
- PN_SHORT,
- PN_UINT,
- PN_INT,
- PN_CHAR,
- PN_ULONG,
- PN_LONG,
- PN_TIMESTAMP,
- PN_FLOAT,
- PN_DOUBLE,
- PN_DECIMAL32,
- PN_DECIMAL64,
- PN_DECIMAL128,
- PN_UUID,
- PN_BINARY,
- PN_STRING,
- PN_SYMBOL,
- PN_DESCRIBED,
- PN_ARRAY,
- PN_LIST,
- PN_MAP
+ PN_NULL = 1,
+ PN_BOOL = 2,
+ PN_UBYTE = 3,
+ PN_BYTE = 4,
+ PN_USHORT = 5,
+ PN_SHORT = 6,
+ PN_UINT = 7,
+ PN_INT = 8,
+ PN_CHAR = 9,
+ PN_ULONG = 10,
+ PN_LONG = 11,
+ PN_TIMESTAMP = 12,
+ PN_FLOAT = 13,
+ PN_DOUBLE = 14,
+ PN_DECIMAL32 = 15,
+ PN_DECIMAL64 = 16,
+ PN_DECIMAL128 = 17,
+ PN_UUID = 18,
+ PN_BINARY = 19,
+ PN_STRING = 20,
+ PN_SYMBOL = 21,
+ PN_DESCRIBED = 22,
+ PN_ARRAY = 23,
+ PN_LIST = 24,
+ PN_MAP = 25
} pn_type_t;
PN_EXTERN const char *pn_type_name(pn_type_t type);
Modified: qpid/proton/trunk/tests/python/proton_tests/codec.py
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/tests/python/proton_tests/codec.py?rev=1491714&r1=1491713&r2=1491714&view=diff
==============================================================================
--- qpid/proton/trunk/tests/python/proton_tests/codec.py (original)
+++ qpid/proton/trunk/tests/python/proton_tests/codec.py Tue Jun 11 09:18:53 2013
@@ -288,6 +288,7 @@ class DataTest(Test):
char("c"): "bleh",
u"desc": Described(symbol("url"), u"http://example.org"),
u"array": Array(UNDESCRIBED, Data.INT, 1, 2, 3),
+ u"list": [1, 2, 3, None, 4],
u"boolean": True}
self.data.put_object(obj)
enc = self.data.encode()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org