Skip to content

Commit 9bde380

Browse files
committed
add some unicodes for future test reference
1 parent 5ad0568 commit 9bde380

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

jscomp/test/.depend

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ for_side_effect_test.cmj : mt.cmj
173173
format_regression.cmj :
174174
format_test.cmj : mt.cmj ../stdlib/format.cmj
175175
fs_test.cmj : ../others/node.cmj mt.cmj ../runtime/js.cmj
176+
gbk.cmj : ../runtime/js.cmj
176177
genlex_test.cmj : ../stdlib/stream.cmj mt.cmj ../stdlib/list.cmj \
177178
../stdlib/genlex.cmj
178179
global_exception_regression_test.cmj : mt.cmj

jscomp/test/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ OTHERS := literals a test_ari test_export2 test_internalOO test_obj_simple_ffi t
8888
include_side_effect\
8989
exception_alias\
9090
prepend_data_ffi\
91+
gbk
9192

9293

9394
SOURCE_LIST := $(OTHERS)

jscomp/test/gbk.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use strict';
2+
3+
4+
console.log("\xe4\xbd\xa0\xe5\xa5\xbd");
5+
6+
console.log("\xe4\xbd\xa0\xe5\xa5\xbd");
7+
8+
console.log(("你好"));
9+
10+
console.log(("你好你好"));
11+
12+
console.log(("\u4f60\u597d"));
13+
14+
/* Not a pure module */

jscomp/test/gbk.ml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
3+
Js.log "你好" ;
4+
5+
Js.log {|你好|};
6+
7+
Js.log [%raw {|"你好"|}];
8+
9+
Js.log ([%raw ({|"你好你好"|} )] : string);
10+
11+
Js.log [%raw {|"\u4f60\u597d"|}];

0 commit comments

Comments
 (0)