diff options
author | Paul Berry <stereotype441@gmail.com> | 2011-09-02 11:32:08 -0700 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2011-09-07 12:28:10 -0700 |
commit | 5dd2f86727a78f5dfe13f96598ecf8174b7a4a15 (patch) | |
tree | 118e92dc39df9e768a08d8d099b73425c0da71c7 /generated_tests | |
parent | 70b2af55a4973d8c6e07ab90c11fc525d184b28f (diff) |
Fix generated "op-mod" tests to actually test the modulus operator.
Due to a copy-paste bug on my part, the generated "op-mod" tests
actually weren't testing the "%" operator at all. They were testing
the "/" operator (and were thus identical to the "op-div" tests).
This patch fixes the tests to actually test the "%" operator.
Diffstat (limited to 'generated_tests')
-rw-r--r-- | generated_tests/builtin_function.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generated_tests/builtin_function.py b/generated_tests/builtin_function.py index 288aa7570..f08ce9e8c 100644 --- a/generated_tests/builtin_function.py +++ b/generated_tests/builtin_function.py @@ -1134,7 +1134,7 @@ def _make_vector_or_matrix_test_vectors(test_suite_dict): f('op-mult', 2, '1.10', _multiply, match_multiply, [floats+vecs+mats+ints+ivecs+uints+uvecs, floats+vecs+mats+ints+ivecs+uints+uvecs], template = '({0} * {1})') f('op-div', 2, '1.10', _divide, match_simple_binop, [floats+vecs+mats+ints+ivecs+uints+uvecs, floats+vecs+mats+ints+ivecs+uints+uvecs], template = '({0} / {1})') f('op-div-large', 2, '1.30', _divide, match_simple_binop, [large_uints, large_uints+small_uints], template = '({0} / {1})') - f('op-mod', 2, '1.30', _divide, match_simple_binop, [ints+ivecs+uints+uvecs, ints+ivecs+uints+uvecs], template = '({0} / {1})') + f('op-mod', 2, '1.30', _modulus, match_simple_binop, [ints+ivecs+uints+uvecs, ints+ivecs+uints+uvecs], template = '({0} % {1})') f('op-uplus', 1, '1.10', lambda x: +x, None, [floats+vecs+mats+ints+ivecs+uints+uvecs], template = '(+ {0})') f('op-neg', 1, '1.10', lambda x: -x, None, [floats+vecs+mats+ints+ivecs+uints+uvecs], template = '(- {0})') f('op-gt', 2, '1.10', lambda x, y: x > y, match_args(0, 1), [ints+uints+floats, ints+uints+floats], template = '({0} > {1})') |