Skip to content

Commit

Permalink
test: minimal support for unicode identifiers in OCaml 5.3 (#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro authored Jan 13, 2025
1 parent a56fb5c commit 7fc2144
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions test/blackbox-tests/unicode-identifiers.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

$ . ./setup.sh

With PPX application

$ cat > x.ml <<EOF
> type saison = Hiver | Été | Printemps | Automne
> let x = Été
> EOF
$ melc x.ml
// Generated by Melange
'use strict';
const x = /* Été */1;
exports.x = x;
/* No side effect */
With PPX application
$ melc -ppx melppx x.ml
// Generated by Melange
'use strict';
const x = /* Été */1;
exports.x = x;
/* No side effect */
Add `@mel.as` string
$ cat > x.ml <<EOF
> type saison = Hiver | Été [@mel.as "Été"] | Printemps | Automne
> let x = Été
> EOF
$ melc x.ml
// Generated by Melange
'use strict';
const x = /* Été */"Été";
exports.x = x;
/* No side effect */

0 comments on commit 7fc2144

Please sign in to comment.