diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-10-21 17:22:36 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:18:31 -0300 |
commit | 4a05efa3768e572c72aea594506ca7ddd5639712 (patch) | |
tree | a0a3e74d9aab9bb4be33dce2fa26cf5febb9c785 /tests/samplebinding | |
parent | b35f28ca167a5b8280ef37566966701f540b8933 (diff) |
Fixes SBK_CONVERTER macro and SbkEnumType structure.
Fixes provided by Hugo Parente Lima.
Unit test added.
Diffstat (limited to 'tests/samplebinding')
-rw-r--r-- | tests/samplebinding/map_test.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/samplebinding/map_test.py b/tests/samplebinding/map_test.py index 02b9496cb..8623907ee 100644 --- a/tests/samplebinding/map_test.py +++ b/tests/samplebinding/map_test.py @@ -26,7 +26,6 @@ '''Test cases for std::map container conversions''' -import sys import unittest from sample import MapUser @@ -65,6 +64,12 @@ class MapConversionTest(unittest.TestCase): result = mu.getMap() self.assertEqual(result, map_) + def testConversionMapIntKeyValueTypeValue(self): + '''C++ signature: MapUser::passMapIntValueType(const std::map<int, const ByteArray>&)''' + mu = MapUser() + map_ = {0 : 'string'} + result = mu.passMapIntValueType(map_) + self.assertEqual(map_, result) + if __name__ == '__main__': unittest.main() - |