Skip to content

Commit

Permalink
More complex unicode tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwoplaza committed Oct 5, 2024
1 parent 489126a commit 3470adf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/typed-binary/src/test/string.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,10 @@ describe('StringSchema', () => {
const decoded = encodeAndDecode(string, value);
expect(decoded).to.equal(value);
});

it('should encode a unicode string', () => {
const value = 'A wonderful 🌞 sunny day! 🌲🌲🌲 Forest trip.';
const decoded = encodeAndDecode(string, value);
expect(decoded).to.equal(value);
});
});

0 comments on commit 3470adf

Please sign in to comment.