Skip to content

Conversation

@Achie72
Copy link
Member

@Achie72 Achie72 commented Oct 18, 2018

test-api.c is containing the testing for all API functions, which resulted in a big and hardly readable file.
This PR is the first of many, that tries to segment it into more files, by tested functionality, this time strings and string methods.

JerryScript-DCO-1.0-Signed-off-by: Bela Toth tbela@inf.u-szeged.hu

Copy link
Contributor

@LaszloLango LaszloLango left a comment

Choose a reason for hiding this comment

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

LGTM

@akosthekiss akosthekiss added ecma core Related to core ECMA functionality api Related to the public API test Related to testing labels Oct 19, 2018
Copy link
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

Good, only a few changes needed.

int
main (void)
{

Copy link
Member

Choose a reason for hiding this comment

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

Remove this newline.


static bool
strict_equals (jerry_value_t a,
jerry_value_t b)
Copy link
Member

Choose a reason for hiding this comment

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

Add description to arguments (I know it is copied, but now we have a stricter style rules).

* limitations under the License.
*/

#include "config.h"
Copy link
Member

Choose a reason for hiding this comment

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

Is this picking up jerry-core/config.h? As this is an API test and config.h is not part of the public API, it should not be used (or needed).

Copy link
Member Author

Choose a reason for hiding this comment

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

The include came from the original test-api.c file, as i initially moved code around, and looks like i forgot to delete it, my bad, will fix it in a moment.

`test-api.c` is containing the testing for all API functions, which resulted in a big and hardly readable file.
This PR is the first of many, that tries to segment it into more files, by tested functionality, this time strings and string methods.

JerryScript-DCO-1.0-Signed-off-by: Bela Toth tbela@inf.u-szeged.hu
Copy link
Member

@akosthekiss akosthekiss left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

LGTM

@zherczeg zherczeg merged commit 63e8287 into jerryscript-project:master Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Related to the public API ecma core Related to core ECMA functionality test Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants