From 378b78240f2c2f08274ff4e4cc71dd740d41c60f Mon Sep 17 00:00:00 2001 From: Remi Date: Wed, 30 Sep 2020 11:42:17 +0200 Subject: [PATCH] test(refmterr): fix failing tests --- .../file_SyntaxError_7_expected.txt | 24 ++----------------- .../type_IncompatibleType_1_expected.txt | 10 ++------ 2 files changed, 4 insertions(+), 30 deletions(-) diff --git a/tests/__tests__/refmterr/__fixtures__/file_SyntaxError/file_SyntaxError_7_expected.txt b/tests/__tests__/refmterr/__fixtures__/file_SyntaxError/file_SyntaxError_7_expected.txt index 4b9a61c1..bfe197ca 100644 --- a/tests/__tests__/refmterr/__fixtures__/file_SyntaxError/file_SyntaxError_7_expected.txt +++ b/tests/__tests__/refmterr/__fixtures__/file_SyntaxError/file_SyntaxError_7_expected.txt @@ -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 @@ -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: @@ -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 diff --git a/tests/__tests__/refmterr/__fixtures__/type_IncompatibleType/type_IncompatibleType_1_expected.txt b/tests/__tests__/refmterr/__fixtures__/type_IncompatibleType/type_IncompatibleType_1_expected.txt index ba69c3da..759767cd 100644 --- a/tests/__tests__/refmterr/__fixtures__/type_IncompatibleType/type_IncompatibleType_1_expected.txt +++ b/tests/__tests__/refmterr/__fixtures__/type_IncompatibleType/type_IncompatibleType_1_expected.txt @@ -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 @@ -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