diff options
author | David Malcolm <dmalcolm@redhat.com> | 2016-06-15 00:12:16 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2016-06-15 00:12:16 +0000 |
commit | f254671f2f9a83843b7b77b496689791bdfdb4fe (patch) | |
tree | cf61ac3757fd5bfdcfc0f5e53278cd0e3d0606c1 /gcc/selftest-run-tests.c | |
parent | ee62e30213a72a93ebee9bfbadc3612cef175957 (diff) | |
download | gcc-f254671f2f9a83843b7b77b496689791bdfdb4fe.zip gcc-f254671f2f9a83843b7b77b496689791bdfdb4fe.tar.gz gcc-f254671f2f9a83843b7b77b496689791bdfdb4fe.tar.bz2 |
Add more spellcheck selftests
gcc/ChangeLog:
* selftest-run-tests.c (selftest::run_tests): Call
selftest::spellcheck_tree_c_tests.
* selftest.h (selftest::spellcheck_tree_c_tests): New decl.
* spellcheck-tree.c: Include selftest.h and stringpool.h.
(selftest::test_find_closest_identifier): New function.
(selftest::spellcheck_tree_c_tests): New function.
* spellcheck.c (selftest::test_find_closest_string): Verify that
the order of the vec does not affect the results for this case.
(selftest::test_data): New array.
(selftest::test_metric_conditions): New function.
(selftest::spellcheck_c_tests): Add a test of case-comparison.
Call selftest::test_metric_conditions.
From-SVN: r237466
Diffstat (limited to 'gcc/selftest-run-tests.c')
-rw-r--r-- | gcc/selftest-run-tests.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/selftest-run-tests.c b/gcc/selftest-run-tests.c index 934e700..d4a9c0b 100644 --- a/gcc/selftest-run-tests.c +++ b/gcc/selftest-run-tests.c @@ -61,6 +61,7 @@ selftest::run_tests () diagnostic_show_locus_c_tests (); fold_const_c_tests (); spellcheck_c_tests (); + spellcheck_tree_c_tests (); tree_cfg_c_tests (); /* This one relies on most of the above. */ |