Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(128)

Issue 6038043: Added tests for identifiers. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 12 months ago by Alok Priyadarshi
Modified:
13 years, 12 months ago
Reviewers:
kbr1
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Added tests for identifiers. Committed: https://code.google.com/p/angleproject/source/detail?r=1042

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -0 lines) Patch
M tests/build_tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A tests/preprocessor_tests/identifier_test.cpp View 1 1 chunk +149 lines, -0 lines 0 comments Download

Messages

Total messages: 3
Alok Priyadarshi
13 years, 12 months ago (2012-04-13 22:06:59 UTC) #1
kbr1
LGTM with same question as before about negative tests. http://codereview.appspot.com/6038043/diff/1/tests/preprocessor_tests/identifier_test.cpp File tests/preprocessor_tests/identifier_test.cpp (right): http://codereview.appspot.com/6038043/diff/1/tests/preprocessor_tests/identifier_test.cpp#newcode104 tests/preprocessor_tests/identifier_test.cpp:104: ...
13 years, 12 months ago (2012-04-13 22:18:46 UTC) #2
Alok Priyadarshi
13 years, 12 months ago (2012-04-13 22:43:09 UTC) #3
Added one non-combinatorial test IdentifierTestAllCharacters, which has all
possible characters in one test string. It also uses '_' as separator.

I will experiment with catch-all rule and add negative tests.

On 2012/04/13 22:18:46, kbr1 wrote:
> LGTM with same question as before about negative tests.
> 
>
http://codereview.appspot.com/6038043/diff/1/tests/preprocessor_tests/identif...
> File tests/preprocessor_tests/identifier_test.cpp (right):
> 
>
http://codereview.appspot.com/6038043/diff/1/tests/preprocessor_tests/identif...
> tests/preprocessor_tests/identifier_test.cpp:104: testing::Values('_')));
> Not to introduce too many combinatorial possibilities, but you probably should
> test the case where "_" is used as a separator in variable names, e.g.
> [a-f]"_"[a-f], rather than just as a prefix or suffix.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b