author | Thomas Rast <trast@student.ethz.ch> | |
Sat, 18 Dec 2010 16:17:54 +0000 (17:17 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 18 Jan 2011 16:51:58 +0000 (08:51 -0800) | ||
commit | 8d96e7288f2be9de6d09352dc445f18f89564500 | |
tree | 664c85e92832fbb8f10b8af2c4efddea224b75af | tree | snapshot |
parent | adf872e7837cc92e390f00ee32f32c5639d3a444 | commit | diff |
t4034: bulk verify builtin word regex sanity
The builtin word regexes should be tested with some simple examples
against simple issues. Do this in bulk.
Mainly due to a lack of language knowledge and inspiration, most of
the test cases (cpp, csharp, java, objc, pascal, php, python, ruby)
are directly based off a C operator precedence table to verify that
all operators are split correctly. This means that they are probably
incomplete or inaccurate except for 'cpp' itself.
Still, they are good enough to already have uncovered a typo in the
python and ruby patterns.
'fortran' is based on my anecdotal knowledge of the DO10I parsing
rules, and thus probably useless. The rest (bibtex, html, tex) are an
ad-hoc test of what I consider important splits in those languages.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The builtin word regexes should be tested with some simple examples
against simple issues. Do this in bulk.
Mainly due to a lack of language knowledge and inspiration, most of
the test cases (cpp, csharp, java, objc, pascal, php, python, ruby)
are directly based off a C operator precedence table to verify that
all operators are split correctly. This means that they are probably
incomplete or inaccurate except for 'cpp' itself.
Still, they are good enough to already have uncovered a typo in the
python and ruby patterns.
'fortran' is based on my anecdotal knowledge of the DO10I parsing
rules, and thus probably useless. The rest (bibtex, html, tex) are an
ad-hoc test of what I consider important splits in those languages.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
37 files changed:
t/t4034-diff-words.sh | diff | blob | history | |
t/t4034/bibtex/expect | [new file with mode: 0644] | blob |
t/t4034/bibtex/post | [new file with mode: 0644] | blob |
t/t4034/bibtex/pre | [new file with mode: 0644] | blob |
t/t4034/cpp/expect | [new file with mode: 0644] | blob |
t/t4034/cpp/post | [new file with mode: 0644] | blob |
t/t4034/cpp/pre | [new file with mode: 0644] | blob |
t/t4034/csharp/expect | [new file with mode: 0644] | blob |
t/t4034/csharp/post | [new file with mode: 0644] | blob |
t/t4034/csharp/pre | [new file with mode: 0644] | blob |
t/t4034/fortran/expect | [new file with mode: 0644] | blob |
t/t4034/fortran/post | [new file with mode: 0644] | blob |
t/t4034/fortran/pre | [new file with mode: 0644] | blob |
t/t4034/html/expect | [new file with mode: 0644] | blob |
t/t4034/html/post | [new file with mode: 0644] | blob |
t/t4034/html/pre | [new file with mode: 0644] | blob |
t/t4034/java/expect | [new file with mode: 0644] | blob |
t/t4034/java/post | [new file with mode: 0644] | blob |
t/t4034/java/pre | [new file with mode: 0644] | blob |
t/t4034/objc/expect | [new file with mode: 0644] | blob |
t/t4034/objc/post | [new file with mode: 0644] | blob |
t/t4034/objc/pre | [new file with mode: 0644] | blob |
t/t4034/pascal/expect | [new file with mode: 0644] | blob |
t/t4034/pascal/post | [new file with mode: 0644] | blob |
t/t4034/pascal/pre | [new file with mode: 0644] | blob |
t/t4034/php/expect | [new file with mode: 0644] | blob |
t/t4034/php/post | [new file with mode: 0644] | blob |
t/t4034/php/pre | [new file with mode: 0644] | blob |
t/t4034/python/expect | [new file with mode: 0644] | blob |
t/t4034/python/post | [new file with mode: 0644] | blob |
t/t4034/python/pre | [new file with mode: 0644] | blob |
t/t4034/ruby/expect | [new file with mode: 0644] | blob |
t/t4034/ruby/post | [new file with mode: 0644] | blob |
t/t4034/ruby/pre | [new file with mode: 0644] | blob |
t/t4034/tex/expect | [new file with mode: 0644] | blob |
t/t4034/tex/post | [new file with mode: 0644] | blob |
t/t4034/tex/pre | [new file with mode: 0644] | blob |