aboutsummaryrefslogtreecommitdiff
path: root/test/qsp_parser_test.ml
diff options
context:
space:
mode:
authorChimrod <>2023-09-27 15:36:13 +0200
committerChimrod <>2023-09-29 10:00:21 +0200
commit5dc0c5defdd7ebb152a00e8b2895787b54931779 (patch)
tree78f9d7c646d3c614a6c934778b195e0707f47821 /test/qsp_parser_test.ml
parent40f7b4c7398db2b832b71e3dfb8afb53116fad51 (diff)
Allow differents file encoding for the source
Diffstat (limited to 'test/qsp_parser_test.ml')
-rw-r--r--test/qsp_parser_test.ml7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/qsp_parser_test.ml b/test/qsp_parser_test.ml
index 6bf249d..25619b7 100644
--- a/test/qsp_parser_test.ml
+++ b/test/qsp_parser_test.ml
@@ -12,7 +12,12 @@ let parse : string -> T.pos location =
fun content ->
let lexing = Sedlexing.Latin1.from_string content in
- match Qparser.Analyzer.parse (module Qsp_syntax.Tree) lexing with
+ match
+ Qparser.Analyzer.parse
+ (module Qsp_syntax.Tree)
+ (module Sedlexing.Utf8)
+ lexing
+ with
| Ok e -> e
| Error e ->
let msg = Format.asprintf "%a" Qparser.Analyzer.format_error e in