diff options
author | Chimrod <> | 2023-09-27 15:36:13 +0200 |
---|---|---|
committer | Chimrod <> | 2023-09-29 10:00:21 +0200 |
commit | 5dc0c5defdd7ebb152a00e8b2895787b54931779 (patch) | |
tree | 78f9d7c646d3c614a6c934778b195e0707f47821 /test | |
parent | 40f7b4c7398db2b832b71e3dfb8afb53116fad51 (diff) |
Allow differents file encoding for the source
Diffstat (limited to 'test')
-rw-r--r-- | test/qsp_parser_test.ml | 7 |
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 |