Skip to content

Commit

Permalink
Add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
laverdet committed Mar 9, 2023
1 parent 1796a8e commit 8f20a23
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/@aws-cdk/cloudformation-diff/test/deep-equal.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { deepEqual } from '../lib/diff/util';

test('mangled strings', () => {
expect(deepEqual('foo', 'foo')).toBeTruthy();
expect(deepEqual('????', '文字化け')).toBeTruthy();
expect(deepEqual('?????', '🤦🏻‍♂️')).toBeTruthy();
expect(deepEqual('?', '\u{10ffff}')).toBeTruthy();
expect(deepEqual('\u007f', '\u007f')).toBeTruthy();
expect(deepEqual('?', '\u007f')).toBeFalsy();
expect(deepEqual('?', '\u0080')).toBeTruthy();
});

0 comments on commit 8f20a23

Please sign in to comment.