Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small enhancement of unit tests implementation style and fix of the tests' modules naming style #175

Merged
merged 1 commit into from
Jun 13, 2015

Conversation

ruben-ayrapetyan
Copy link
Contributor

  • introducing TEST_RANDOMIZE macro for randomization of source data used in unit tests;
  • replacing assert with JERRY_ASSERT;
  • renaming test_* to test-*.

@ruben-ayrapetyan ruben-ayrapetyan added the enhancement An improvement label Jun 11, 2015
@ruben-ayrapetyan ruben-ayrapetyan force-pushed the Ruben-small-enhancements-of-unit-tests branch from e68b4f8 to acf4edf Compare June 11, 2015 15:42
printf ("TEST_RANDOMIZE: seed is %u\n", seed); \
\
srand (seed); \
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this have the format of: do { ... } while (0) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the note. I've updated pull request.

@ruben-ayrapetyan ruben-ayrapetyan force-pushed the Ruben-small-enhancements-of-unit-tests branch 2 times, most recently from 60dc0d0 to 6ca37ea Compare June 11, 2015 21:30
@egavrin egavrin added this to the Core ECMA features milestone Jun 12, 2015
@egavrin
Copy link
Contributor

egavrin commented Jun 12, 2015

Good to me.

@egavrin egavrin assigned galpeter and unassigned egavrin Jun 12, 2015
@galpeter
Copy link
Contributor

Looks good to me.

@galpeter galpeter removed their assignment Jun 12, 2015
@egavrin
Copy link
Contributor

egavrin commented Jun 12, 2015

@ruben-ayrapetyan make push

…tests' modules naming style.

 - introducing TEST_RANDOMIZE macro for randomization of source data used in unit tests;
 - replacing assert with JERRY_ASSERT;
 - renaming test_* to test-*.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants