Skip to content

Commit

Permalink
Promote tests
Browse files Browse the repository at this point in the history
  • Loading branch information
liam923 committed Nov 29, 2024
1 parent e309d55 commit bd8e2d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/ocaml/preprocess/parser_raw.ml
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,8 @@ let rec mktailpat nilloc = let open Location in function
let mkstrexp e attrs =
{ pstr_desc = Pstr_eval (e, attrs); pstr_loc = e.pexp_loc }

(*let syntax_error () =
raise Syntaxerr.Escape_error*)
let _syntax_error () =
raise Syntaxerr.Escape_error

let removed_string_set loc =
raise_error Syntaxerr.(Error(Syntaxerr.Removed_string_set(make_loc loc)))
Expand Down
4 changes: 2 additions & 2 deletions src/ocaml/preprocess/parser_raw.mly
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ let rec mktailpat nilloc = let open Location in function
let mkstrexp e attrs =
{ pstr_desc = Pstr_eval (e, attrs); pstr_loc = e.pexp_loc }

(*let syntax_error () =
raise Syntaxerr.Escape_error*)
let _syntax_error () =
raise Syntaxerr.Escape_error

let removed_string_set loc =
raise_error Syntaxerr.(Error(Syntaxerr.Removed_string_set(make_loc loc)))
Expand Down
6 changes: 3 additions & 3 deletions tests/test-dirs/type-enclosing/jane-street.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ escape characters in string literals, so we use the revert-newlines script.

type t6 : value = { v : int } [@@unboxed]
^
With verbosity 0: "type t6 : value = { v : int; } [@@unboxed]"
With verbosity 0: "type t6 = { v : int; } [@@unboxed]"
With verbosity 1: "type t6 : immediate = { v : int; } [@@unboxed]"


Expand Down Expand Up @@ -171,7 +171,7 @@ escape characters in string literals, so we use the revert-newlines script.
let f6 (x : t6) = x
^
With verbosity 0: "t6"
With verbosity 1: "type t6 : value = { v : int; } [@@unboxed]"
With verbosity 1: "type t6 = { v : int; } [@@unboxed]"


- type annotation
Expand Down Expand Up @@ -220,7 +220,7 @@ escape characters in string literals, so we use the revert-newlines script.

let f6 (x : t6) = x
^
With verbosity 0: "type t6 : value = { v : int; } [@@unboxed]"
With verbosity 0: "type t6 = { v : int; } [@@unboxed]"
With verbosity 1: "type t6 : immediate = { v : int; } [@@unboxed]"


Expand Down

0 comments on commit bd8e2d4

Please sign in to comment.