Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Test test

Source location: tests/judgment-error-reporting/cyclic_judgment.rs:73

#[test]
fn test() {
    let foo = Ty::Class {
        name: ClassName::new("Foo"),
    };
    let bar = Ty::Class {
        name: ClassName::new("Bar"),
    };
    sub(foo, bar).assert_err(expect_test::expect![[r#"
        the rule "equivalent" at (cyclic_judgment.rs) failed because
          condition evaluated to false: `a1 != a || b1 != b`

        the rule "equivalent" at (cyclic_judgment.rs) failed because
          condition evaluated to false: `a1 != a || b1 != b`

        the rule "equivalent" at (cyclic_judgment.rs) failed because
          condition evaluated to false: `a1 != a || b1 != b`

        the rule "equivalent" at (cyclic_judgment.rs) failed because
          condition evaluated to false: `a1 != a || b1 != b`

        the rule "equivalent" at (cyclic_judgment.rs) failed because
          condition evaluated to false: `a1 != a || b1 != b`

        the rule "equivalent" at (cyclic_judgment.rs) failed because
          condition evaluated to false: `a1 != a || b1 != b`

        the rule "equivalent" at (cyclic_judgment.rs) failed because
          condition evaluated to false: `a1 != a || b1 != b`

        the rule "equivalent" at (cyclic_judgment.rs) failed because
          condition evaluated to false: `a1 != a || b1 != b`

        the rule "equivalent" at (cyclic_judgment.rs) failed because
          condition evaluated to false: `a1 != a || b1 != b`

        the rule "equivalent" at (cyclic_judgment.rs) failed because
          condition evaluated to false: `a1 != a || b1 != b`

        the rule "equivalent" at (cyclic_judgment.rs) failed because
          condition evaluated to false: `a1 != a || b1 != b`

        the rule "equivalent" at (cyclic_judgment.rs) failed because
          condition evaluated to false: `a1 != a || b1 != b`

        the rule "equivalent" at (cyclic_judgment.rs) failed because
          condition evaluated to false: `a1 != a || b1 != b`

        the rule "equivalent" at (cyclic_judgment.rs) failed because
          condition evaluated to false: `a1 != a || b1 != b`

        the rule "equivalent" at (cyclic_judgment.rs) failed because
          condition evaluated to false: `a1 != a || b1 != b`

        the rule "same class" at (cyclic_judgment.rs) failed because
          condition evaluated to false: `name_a == name_b`
            name_a = Foo
            name_b = Bar"#]]);
}

Rules proved (0)

This test records no positive coverage.

Premises failed (3)

The last column links to the premise’s page when the judgment view counts this failure against that premise. It does not when the premise is read as infallible, or when the failure was blamed inside a multi-line premise that carries no record on its own first line.

JudgmentRulePremiseAll tests of this premise
--tests/judgment-error-reporting/cyclic_judgment.rs:23not in the report
--tests/judgment-error-reporting/cyclic_judgment.rs:24not in the report
--tests/judgment-error-reporting/cyclic_judgment.rs:30not in the report

Proof trees

Failed proof tree