mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
//// [tests/cases/compiler/unicodeSurrogatesInStringLiterals.ts] ////
|
|
|
|
=== unicodeSurrogatesInStringLiterals.ts ===
|
|
// low-high surrogate pair - the "correct" case
|
|
export const highLow = "\ud83d\ude03" as const;
|
|
>highLow : Symbol(highLow, Decl(unicodeSurrogatesInStringLiterals.ts, 1, 12))
|
|
>const : Symbol(const)
|
|
|
|
// high surrogate
|
|
export const high = "\ud83d" as const;
|
|
>high : Symbol(high, Decl(unicodeSurrogatesInStringLiterals.ts, 4, 12))
|
|
>const : Symbol(const)
|
|
|
|
// low surrogate
|
|
export const low = "\ude03" as const;
|
|
>low : Symbol(low, Decl(unicodeSurrogatesInStringLiterals.ts, 7, 12))
|
|
>const : Symbol(const)
|
|
|
|
// two high surrogates
|
|
export const highHigh = "\ud83d\ud83d" as const;
|
|
>highHigh : Symbol(highHigh, Decl(unicodeSurrogatesInStringLiterals.ts, 10, 12))
|
|
>const : Symbol(const)
|
|
|
|
// two low surrogates
|
|
export const lowLow = "\ude03\ude03" as const;
|
|
>lowLow : Symbol(lowLow, Decl(unicodeSurrogatesInStringLiterals.ts, 13, 12))
|
|
>const : Symbol(const)
|
|
|
|
// swapped expected order of surrogates
|
|
export const lowHigh = "\ude03\ud83d" as const;
|
|
>lowHigh : Symbol(lowHigh, Decl(unicodeSurrogatesInStringLiterals.ts, 16, 12))
|
|
>const : Symbol(const)
|
|
|