Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Aug 7, 2017
1 parent f1d98a2 commit 970c5f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
@@ -1,9 +1,9 @@
sudo: false
language: node_js
node_js:
- '0.12'
- '1'
- '2'
- '3'
- '4'
- '6'
- '8'
script: "npm run test-travis"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
13 changes: 0 additions & 13 deletions test/byte.test.js
Expand Up @@ -629,19 +629,6 @@ describe('byte.test.js', function () {
assert(bytes.toString() === '<ByteBuffer ef bf bf>');
});

it('U+10000 ~ U+10FFFF', function() {
// https://en.wikipedia.org/wiki/UTF-8
// UTF-8
var bytes = ByteBuffer.allocate(1);
bytes = ByteBuffer.allocate(1);
bytes.putUTF8RawString('𐍈');
assert(bytes.toString() === '<ByteBuffer f0 90 8d 88>');
// CESU-8
bytes = ByteBuffer.allocate(1);
bytes.putRawString('𐍈');
assert(bytes.toString() === '<ByteBuffer ed a0 80 ed bd 88>');
});

it('should put emoji', function () {
// utf8
var bytes = ByteBuffer.allocate(1);
Expand Down

0 comments on commit 970c5f1

Please sign in to comment.