Skip to content

Commit

Permalink
test(refmterr): fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayshiff committed Sep 30, 2020
1 parent 3de4d1f commit 378b782
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Unformatted Error Output:
# File "tests/__tests__/refmterr/__fixtures__/file_SyntaxError/file_SyntaxError_7.re", line 20, characters 22-23:
# Error: Syntax error: ')' expected
# Error: Unclosed "{" (opened line 10, column 4)


 ERROR  tests/__tests__/refmterr/__fixtures__/file_SyntaxError/file_SyntaxError_7.re:20 22-23
Expand All @@ -11,26 +11,6 @@
20 ┆  ) : React.elem(tree);
21 ┆ };

This is a syntax error: ')' expected
Make sure all imperative statements, as well as let/type bindings have exactly one semicolon separating them.
Note: the location indicated might not be accurate.


# Unformatted Error Output:
# File "tests/__tests__/refmterr/__fixtures__/file_SyntaxError/file_SyntaxError_7.re", line 15, characters 43-44:
# Error: This '(' might be unmatched


 ERROR  tests/__tests__/refmterr/__fixtures__/file_SyntaxError/file_SyntaxError_7.re:15 43-44

12 ┆ type subtree = Dom.tree(React.empty);
13 ┆ type tree = state => subtree;
14 ┆ let createElement =
15 ┆  (~initialVal="deafult", children) => ((~state=initialVal, self) => (
16 ┆  state,
17 ┆  fun
18 ┆  | React.Changed(s) => s,



# Unformatted Error Output:
Expand All @@ -47,5 +27,5 @@ Note: the location indicated might not be accurate.



Command line: refmt 'tests/__tests__/refmterr/__fixtures__/file_SyntaxError/file_SyntaxError_7.re' > /tmp/ocamlpp2614dc
Command line: refmt 'tests/__tests__/refmterr/__fixtures__/file_SyntaxError/file_SyntaxError_7.re' > /var/folders/yk/qlrdclf56jn6j48wggs7p5wc0000gp/T/ocamlpp2a48b2

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# File "tests/__tests__/refmterr/__fixtures__/type_IncompatibleType/type_IncompatibleType_1.ml", line 1, characters 3-6:
# Error: This expression has type int but an expression was expected of type
#  bool
#  because it is in the condition of an if-statement


 ERROR  tests/__tests__/refmterr/__fixtures__/type_IncompatibleType/type_IncompatibleType_1.ml:1 3-6
Expand All @@ -11,13 +10,8 @@

This type doesn't match what is expected.

This type:
int

Expecting:
ML: bool
Equals
 because it is in the condition of an if-statement
This type: int
Expecting: bool



0 comments on commit 378b782

Please sign in to comment.