Skip to content

test: add buffer transcode test - #10043

Closed
jreading wants to merge 1 commit into
nodejs:masterfrom
jreading:nina-tasks3
Closed

test: add buffer transcode test#10043
jreading wants to merge 1 commit into
nodejs:masterfrom
jreading:nina-tasks3

Conversation

@jreading

@jreadingjreading commented Dec 1, 2016

Copy link
Copy Markdown
Checklist
  • make -j8 test (UNIX), or vcbuild test nosign (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Description of change

This test is for argument validation in transcode.

@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Dec 1, 2016
@imyllerimyller added buffer Issues and PRs related to the buffer subsystem. code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. labels Dec 1, 2016
@jreading
jreadingforce-pushed the nina-tasks3 branch 7 times, most recently from 618e40a to 5724dd2CompareDecember 1, 2016 19:25
@bnoordhuis

Copy link
Copy Markdown
Member

Just curious, is there a reason you created a new file instead of adding it to test/parallel/test-icu-transcode.js?

@jreading

Copy link
Copy Markdown
Author

No reason other than I did not see that file. 😄 I'll move this test there.

Comment threadtest/parallel/test-icu-transcode.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If you're testing the entire error message, you can add ^ and $ to the regular expression.

Comment threadtest/parallel/test-icu-transcode.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

tiny nit: new line here.

Comment threadtest/parallel/test-icu-transcode.js Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would be better to test the full error message here:

/^Error:UnabletotranscodeBuffer[U_ILLEGAL_ARGUMENT_ERROR]$/

This test is for argument validation in transcode.
feedback from approvers; full regex error msg & new line
@Trott

Trott commented Dec 8, 2016

Copy link
Copy Markdown
Member

@italoacasas

Copy link
Copy Markdown

Landed 9f58e02

Thanks for the contribution.

italoacasas pushed a commit that referenced this pull request Dec 12, 2016
This test is for argument validation in transcode.
PR-URL: #10043
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Fishrock123 pushed a commit that referenced this pull request Dec 13, 2016
This test is for argument validation in transcode.
PR-URL: #10043
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@italoacasasitaloacasas mentioned this pull request Dec 15, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bufferIssues and PRs related to the buffer subsystem.code-and-learnIssues related to the Code-and-Learn events and PRs submitted during the events.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@jreading@bnoordhuis@Trott@italoacasas@jasnell@cjihrig@MylesBorins@imyller@nodejs-github-bot