Skip to content

Fix filter parsing #5986

Fix filter parsing

Fix filter parsing #5986

GitHub Actions / Test Report failed Oct 25, 2024 in 1s

60 passed, 5 failed and 0 skipped

Tests failed

❌ junit_tests.xml

65 tests were completed in 0ms with 60 passed, 5 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Dynamics 60✅ 5❌ 0ms

❌ Dynamics

Dynamics.Parser
  ✅ Integer Literal
  ✅ Fun
  ✅ String Literal
  ✅ Bool Literal
  ✅ Empty Hole
  ✅ Var
  ✅ Parens
  ✅ BinOp
  ✅ Let
  ✅ Tuple
  ✅ Match
  ✅ If
  ✅ Deferred Ap
  ✅ Cons
  ✅ ListLit
  ✅ Constructor
  ✅ Type Alias
  ✅ Test
  ❌ Filter
	Alcotest assertion failure
  ✅ List Concat
  ❌ Integer Ops
	Parse error at: line 1, column 27
  ❌ Let binding with type ascription
	Parse error at: line 1, column 8
  ❌ named_function
	Parse error at: line 1, column 11
Dynamics.Statics
  ✅ Function with unknown param
  ✅ Function with known param
  ✅ bifunction
  ✅ function application
  ✅ function deferral
Dynamics.Evaluator
  ✅ Integer literal
  ✅ Integer sum
Dynamics.Elaboration tests
  ✅ Single integer
  ✅ Empty hole
  ✅ Free variable
  ✅ Let expression
  ✅ Inconsistent binary operation
  ✅ Consistent if statement
  ✅ An unapplied function
  ✅ Application of function on free variable
  ✅ Inconsistent case statement
  ✅ Let expression for a function
  ✅ Function application with a deferred argument
Dynamics.Menhir elaboration tests
  ❌ Filter test (menhir)
	Parse error at: line 1, column 7
  ✅ Test failed (menhir)
  ✅ Built-in function (menhir)
  ✅ Dynamic error hole (menhir)
  ✅ Constructor test (menhir)
  ✅ Failed cast test (menhir)
  ✅ Type ap test (menhir)
  ✅ Let expression for a tuple (menhir)
  ✅ Single integer (menhir)
  ✅ Let expression for a function (menhir)
  ✅ Empty hole (menhir)
  ✅ Free var (menhir)
  ✅ Bin op (menhir)
  ✅ Inconsistent case (menhir)
  ✅ ap fun (menhir)
  ✅ Consistent if (menhir)
  ✅ Undefined test (menhir)
  ✅ List exp (menhir)
  ✅ Invalid test (menhir)
  ✅ Type alias test (menhir)
  ✅ List concat test (menhir)
  ✅ Unary operation test (menhir)
  ✅ Sequence test (menhir)
  ✅ FixF test (menhir)

Annotations

Check failure on line 0 in junit_tests.xml

See this annotation in the file changed.

@github-actions github-actions / Test Report

Dynamics ► Dynamics.Parser ► Filter

Failed test found in:
  junit_tests.xml
Error:
  Alcotest assertion failure
Raw output
Alcotest assertion failure
FAIL Does not match MakeTerm

   Expected: `{ ids = <opaque>; copied = <opaque>;
  term =
  (Filter (
     (Filter
        { pat = { ids = <opaque>; copied = <opaque>; term = (Int 3) };
          act = (Eval, One) }),
     { ids = <opaque>; copied = <opaque>; term = (Int 3) }))
  }'

   Received: `{ ids = <opaque>; copied = <opaque>;
  term =
  (Filter (
     (Filter
        { pat = { ids = <opaque>; copied = <opaque>; term = (Int 3) };
          act = (Eval, All) }),
     { ids = <opaque>; copied = <opaque>; term = (Int 3) }))
  }'

Check failure on line 0 in junit_tests.xml

See this annotation in the file changed.

@github-actions github-actions / Test Report

Dynamics ► Dynamics.Parser ► Integer Ops

Failed test found in:
  junit_tests.xml
Error:
  Parse error at: line 1, column 27
Raw output
Parse error at: line 1, column 27

Check failure on line 0 in junit_tests.xml

See this annotation in the file changed.

@github-actions github-actions / Test Report

Dynamics ► Dynamics.Parser ► Let binding with type ascription

Failed test found in:
  junit_tests.xml
Error:
  Parse error at: line 1, column 8
Raw output
Parse error at: line 1, column 8

Check failure on line 0 in junit_tests.xml

See this annotation in the file changed.

@github-actions github-actions / Test Report

Dynamics ► Dynamics.Parser ► named_function

Failed test found in:
  junit_tests.xml
Error:
  Parse error at: line 1, column 11
Raw output
Parse error at: line 1, column 11

Check failure on line 0 in junit_tests.xml

See this annotation in the file changed.

@github-actions github-actions / Test Report

Dynamics ► Dynamics.Menhir elaboration tests ► Filter test (menhir)

Failed test found in:
  junit_tests.xml
Error:
  Parse error at: line 1, column 7
Raw output
Parse error at: line 1, column 7