Commit Graph

7 Commits

Author SHA1 Message Date
Niels Boehm 0f4ecc6ccc Use and test syntax against None in all_tests.
Comparing against 0 or just testing the truthiness is suboptimal, as you
lose the ability to explicitly set the syntax to CS_OPT_SYNTAX_DEFAULT
or 0.

Also, using None to mean "don't change" or other "here is no value"
interpretations is much more pythonic than the C-idiomatic 0.
2016-06-13 12:25:24 +02:00
Nguyen Anh Quynh 03d1e1f86d python: clean up test_*.py 2015-04-27 11:51:48 +08:00
Nguyen Anh Quynh ec58a02c6d python: update Mips modes to CS_MODE_MIPS32 & CS_MODE_MIPS64 2014-11-13 11:42:38 +08:00
Nguyen Anh Quynh 1098329f40 python: refactor tests, so it is possible to reuse print_insn_detail() of all archs 2014-05-17 09:51:15 +08:00
fenuks 110ab1debd Python 3 support 2014-04-11 11:00:33 +02:00
Nguyen Anh Quynh 27a35fe1a7 python: fix bugs in test.py & test_lite.py 2014-02-25 17:07:25 +08:00
Nguyen Anh Quynh 5d0428ebfc python: add test_lite.py to demonstrate new APIs: cs_disasm_lite() & Cs.disasm_lite() 2014-02-21 18:06:04 +08:00