r237466 - in /trunk/gcc: ChangeLog selftest-run...

dmalcolm@gcc.gnu.org dmalcolm@gcc.gnu.org
Wed Jun 15 00:12:00 GMT 2016


Author: dmalcolm
Date: Wed Jun 15 00:12:16 2016
New Revision: 237466

URL: https://gcc.gnu.org/viewcvs?rev=237466&root=gcc&view=rev
Log:
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.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/selftest-run-tests.c
    trunk/gcc/selftest.h
    trunk/gcc/spellcheck-tree.c
    trunk/gcc/spellcheck.c



More information about the Gcc-cvs mailing list