diff options
author | rw <me@rwinslow.com> | 2014-12-16 00:32:11 -0800 |
---|---|---|
committer | rw <me@rwinslow.com> | 2015-05-12 15:40:29 -0700 |
commit | 48dfc69ee613a176f13b04c2310adb7a08fe6737 (patch) | |
tree | 9ec728d0b78951b40e42f1acb42f44520fe2bb3b /tests/test.cpp | |
parent | 4d213c2d06fa17bec1dc87d16d02b8d94bc4fc58 (diff) | |
download | flatbuffers-48dfc69ee613a176f13b04c2310adb7a08fe6737.tar.gz flatbuffers-48dfc69ee613a176f13b04c2310adb7a08fe6737.tar.bz2 flatbuffers-48dfc69ee613a176f13b04c2310adb7a08fe6737.zip |
Port FlatBuffers to Python.
Implement code generation and self-contained runtime library for Python.
The test suite verifies:
- Correctness of generated Python code by comparing output to that of
the other language ports.
- The exact bytes in the Builder buffer during many scenarios.
- Vtable deduplication correctness.
- Edge cases for table construction, via a fuzzer derived from the Go
implementation.
- All code is simultaneously valid in Python 2.6, 2.7, and 3.4.
The test suite includes benchmarks for:
- Building 'gold' data.
- Parsing 'gold' data.
- Deduplicating vtables.
All tests pass on this author's system for the following Python
implementations:
- CPython 2.6.7
- CPython 2.7.8
- CPython 3.4.2
- PyPy 2.5.0 (CPython 2.7.8 compatible)
Diffstat (limited to 'tests/test.cpp')
-rw-r--r-- | tests/test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test.cpp b/tests/test.cpp index b0cace94..ebd4370e 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -37,7 +37,7 @@ int testing_fails = 0; template<typename T, typename U> void TestEq(T expval, U val, const char *exp, const char *file, int line) { - if (expval != val) { + if (U(expval) != val) { auto expval_str = flatbuffers::NumToString(expval); auto val_str = flatbuffers::NumToString(val); TEST_OUTPUT_LINE("TEST FAILED: %s:%d, %s (%s) != %s", file, line, |