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

test: relax expectations in test-icu-transcode #25866

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Relax expectations in test-icu-transcode wrt mislabeling
  • Loading branch information
hashseed committed Feb 1, 2019
commit c7dddff7be7b8640e183bacb55a3da0a87f701f1
8 changes: 4 additions & 4 deletions test/parallel/test-icu-transcode.js
Original file line number Diff line number Diff line change
@@ -7,15 +7,15 @@ if (!common.hasIntl)

const buffer = require('buffer');
const assert = require('assert');
const orig = Buffer.from('tést €', 'utf8');
const orig = Buffer.from('těst ☕', 'utf8');

// Test Transcoding
const tests = {
'latin1': [0x74, 0xe9, 0x73, 0x74, 0x20, 0x3f],
'latin1': [0x74, 0x3f, 0x73, 0x74, 0x20, 0x3f],
'ascii': [0x74, 0x3f, 0x73, 0x74, 0x20, 0x3f],
'ucs2': [0x74, 0x00, 0xe9, 0x00, 0x73,
'ucs2': [0x74, 0x00, 0x1b, 0x01, 0x73,
0x00, 0x74, 0x00, 0x20, 0x00,
0xac, 0x20]
0x15, 0x26]
};

for (const test in tests) {