Skip to content

Commit 89afd49

Browse files
committed
Update test files
1 parent d37bea1 commit 89afd49

File tree

3 files changed

+22
-24
lines changed

3 files changed

+22
-24
lines changed

tests/tests/src/arith_syntax.res

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
type rec expression =
2-
| /** non-negative integer constant */
3-
Numeral(float)
4-
| /** Addition [e1 + e2] */
5-
Plus(expression, expression)
6-
| /** Difference [e1 - e2] */
7-
Minus(expression, expression)
8-
| /** Product [e1 * e2] */
9-
Times(expression, expression)
10-
| /** Quotient [e1 / e2] */
11-
Divide(expression, expression)
12-
| /** Opposite value [-e] */
13-
Negate(expression)
2+
/** non-negative integer constant */
3+
| Numeral(float)
4+
/** Addition [e1 + e2] */
5+
| Plus(expression, expression)
6+
/** Difference [e1 - e2] */
7+
| Minus(expression, expression)
8+
/** Product [e1 * e2] */
9+
| Times(expression, expression)
10+
/** Quotient [e1 / e2] */
11+
| Divide(expression, expression)
12+
/** Opposite value [-e] */
13+
| Negate(expression)
1414
| Variable(string)
1515

1616
let rec str = e =>

tests/tests/src/mutual_non_recursive_type.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type t =
99
| Ta(t) /* * u compilation error [nonrec applices to all] */
1010
| Tb(int)
1111
and u =
12-
| /** one attribute nonrecursive will affect all */
13-
H(t) /* refers to old t */
12+
/** one attribute nonrecursive will affect all */
13+
| H(t) /* refers to old t */
1414

1515
let v: u = H(OT)

tests/tools_tests/src/DocExtractionRes.res

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ let \"SomeConstant" = 12
2828
module SomeInnerModule = {
2929
/*** Another module level docstring here.*/
3030
type status =
31-
| /** If this is started or not */
32-
Started(t)
33-
| /** Stopped? */
34-
Stopped
35-
| /** Now idle.*/
36-
Idle
37-
38-
/** These are all the valid inputs.*/
31+
/** If this is started or not */
32+
| Started(t)
33+
/** Stopped? */
34+
| Stopped
35+
/** Now idle.*/
36+
| Idle
3937
type validInputs = [#something | #"needs-escaping" | #withPayload(int) | #status(status)]
4038

4139
type callback = (t, ~status: status) => unit
@@ -55,8 +53,8 @@ module AnotherModule = {
5553

5654
/** Trying how it looks with an inline record in a variant. */
5755
type someVariantWithInlineRecords =
58-
| /** This has inline records...*/
59-
SomeStuff({
56+
/** This has inline records...*/
57+
| SomeStuff({
6058
offline: bool,
6159
/** Is the user online? */
6260
online?: bool,

0 commit comments

Comments
 (0)