Skip to content

Failing test cases after building #11

Description

@jasonhemann

Following the README instructions, I run the provided unit tests, and python reports two failing tests. Can you reproduce this behavior?

.......FF.............
======================================================================
FAIL: test_violated_abstract (tyrell.decider.test_example_constraint.TestExampleConstraint)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/me/Trinity/tyrell/decider/test_example_constraint.py", line 80, in test_violated_abstract
    self.assertIn([(prog, prog.production)], reason)
AssertionError: [(ApplyNode(mult, [ParamNode(0), ParamNode(1)]), FunctionProduction(id=0, lhs=ValueType(IntExpr, properties={'pos': <ExprType.BOOL: 'bool'>, 'neg': <ExprType.BOOL: 'bool'>}), name=mult, rhs=[ValueType(IntExpr, properties={'pos': <ExprType.BOOL: 'bool'>, 'neg': <ExprType.BOOL: 'bool'>}), ValueType(IntExpr, properties={'pos': <ExprType.BOOL: 'bool'>, 'neg': <ExprType.BOOL: 'bool'>})]))] not found in [[Blame(node=@param0, production=2), Blame(node=@param1, production=3), Blame(node=mult(@param0, @param1), production=1)], [(ParamNode(0), ParamProduction(id=2, lhs=ValueType(IntExpr, properties={'pos': <ExprType.BOOL: 'bool'>, 'neg': <ExprType.BOOL: 'bool'>}), param_id=0)), (ParamNode(1), ParamProduction(id=3, lhs=ValueType(IntExpr, properties={'pos': <ExprType.BOOL: 'bool'>, 'neg': <ExprType.BOOL: 'bool'>}), param_id=1)), (ApplyNode(mult, [ParamNode(0), ParamNode(1)]), FunctionProduction(id=0, lhs=ValueType(IntExpr, properties={'pos': <ExprType.BOOL: 'bool'>, 'neg': <ExprType.BOOL: 'bool'>}), name=mult, rhs=[ValueType(IntExpr, properties={'pos': <ExprType.BOOL: 'bool'>, 'neg': <ExprType.BOOL: 'bool'>}), ValueType(IntExpr, properties={'pos': <ExprType.BOOL: 'bool'>, 'neg': <ExprType.BOOL: 'bool'>})]))]]

======================================================================
FAIL: test_violated_abstract2 (tyrell.decider.test_example_constraint.TestExampleConstraint)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/me/Trinity/tyrell/decider/test_example_constraint.py", line 95, in test_violated_abstract2
    self.assertIn([(prog, prog.production)], reason)
AssertionError: [(ApplyNode(div, [ParamNode(0), ParamNode(1)]), FunctionProduction(id=1, lhs=ValueType(IntExpr, properties={'pos': <ExprType.BOOL: 'bool'>, 'neg': <ExprType.BOOL: 'bool'>}), name=div, rhs=[ValueType(IntExpr, properties={'pos': <ExprType.BOOL: 'bool'>, 'neg': <ExprType.BOOL: 'bool'>}), ValueType(IntExpr, properties={'pos': <ExprType.BOOL: 'bool'>, 'neg': <ExprType.BOOL: 'bool'>})]))] not found in [[Blame(node=@param0, production=2), Blame(node=@param1, production=3), Blame(node=div(@param0, @param1), production=0)], [(ParamNode(0), ParamProduction(id=2, lhs=ValueType(IntExpr, properties={'pos': <ExprType.BOOL: 'bool'>, 'neg': <ExprType.BOOL: 'bool'>}), param_id=0)), (ApplyNode(div, [ParamNode(0), ParamNode(1)]), FunctionProduction(id=1, lhs=ValueType(IntExpr, properties={'pos': <ExprType.BOOL: 'bool'>, 'neg': <ExprType.BOOL: 'bool'>}), name=div, rhs=[ValueType(IntExpr, properties={'pos': <ExprType.BOOL: 'bool'>, 'neg': <ExprType.BOOL: 'bool'>}), ValueType(IntExpr, properties={'pos': <ExprType.BOOL: 'bool'>, 'neg': <ExprType.BOOL: 'bool'>})])), (ParamNode(1), ParamProduction(id=3, lhs=ValueType(IntExpr, properties={'pos': <ExprType.BOOL: 'bool'>, 'neg': <ExprType.BOOL: 'bool'>}), param_id=1))]]

----------------------------------------------------------------------
Ran 22 tests in 0.208s

FAILED (failures=2)

I believe I've installed Trinity correctly (caveat: see #10 ). I'm running on OSX, if that's relevant, but I saw the same failures on a RHEL machine.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions