Test test1
Source location: tests/judgment-error-reporting/cyclic_judgment.rs:133
#[test]
fn test1() {
let foo = Ty::My(Arc::new(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 "same class" at (cyclic_judgment.rs) failed because
condition evaluated to false: `name_a == name_b`
name_a = Foo
name_b = Bar
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
the rule "same class" at (cyclic_judgment.rs) failed because
condition evaluated to false: `name_a == name_b`
name_a = Foo
name_b = Bar
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
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
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
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 (4)
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.
| Judgment | Rule | Premise | All tests of this premise |
|---|---|---|---|
| - | - | tests/judgment-error-reporting/cyclic_judgment.rs:23 | not in the report |
| - | - | tests/judgment-error-reporting/cyclic_judgment.rs:24 | not in the report |
| - | - | tests/judgment-error-reporting/cyclic_judgment.rs:30 | not in the report |
| - | - | tests/judgment-error-reporting/cyclic_judgment.rs:36 | not in the report |
Proof trees
Failed proof tree
sub failedcyclic_judgment.rs:13args
rule "equivalent"cyclic_judgment.rs:23 (failed: if_false)rule "equivalent"cyclic_judgment.rs:24sub failedcyclic_judgment.rs:13args
rule "equivalent"cyclic_judgment.rs:24sub failedcyclic_judgment.rs:13args
rule "equivalent"cyclic_judgment.rs:23 (failed: if_false)rule "equivalent"cyclic_judgment.rs:24sub failedcyclic_judgment.rs:13args
rule "equivalent"cyclic_judgment.rs:23 (failed: if_false)
rule "equivalent"cyclic_judgment.rs:24sub failedcyclic_judgment.rs:13args
rule "equivalent"cyclic_judgment.rs:23 (failed: if_false)rule "equivalent"cyclic_judgment.rs:24sub failedcyclic_judgment.rs:13args
rule "equivalent"cyclic_judgment.rs:23 (failed: if_false)
rule "same class"cyclic_judgment.rs:30 (failed: if_false)
rule "equivalent"cyclic_judgment.rs:24sub failedcyclic_judgment.rs:13args
rule "equivalent"cyclic_judgment.rs:23 (failed: if_false)rule "equivalent"cyclic_judgment.rs:24sub failedcyclic_judgment.rs:13args
rule "equivalent"cyclic_judgment.rs:24sub failedcyclic_judgment.rs:13args
rule "equivalent"cyclic_judgment.rs:23 (failed: if_false)
rule "same class"cyclic_judgment.rs:30 (failed: if_false)
rule "equivalent"cyclic_judgment.rs:24sub failedcyclic_judgment.rs:13args
rule "both my"cyclic_judgment.rs:36sub failedcyclic_judgment.rs:13args
rule "same class"cyclic_judgment.rs:30 (failed: if_false)
rule "equivalent"cyclic_judgment.rs:23 (failed: if_false)rule "equivalent"cyclic_judgment.rs:24sub failedcyclic_judgment.rs:13args
rule "same class"cyclic_judgment.rs:30 (failed: if_false)
rule "equivalent"cyclic_judgment.rs:24sub failedcyclic_judgment.rs:13args
rule "both my"cyclic_judgment.rs:36sub failedcyclic_judgment.rs:13args
rule "equivalent"cyclic_judgment.rs:24sub failedcyclic_judgment.rs:13args
rule "equivalent"cyclic_judgment.rs:23 (failed: if_false)
rule "same class"cyclic_judgment.rs:30 (failed: if_false)
rule "equivalent"cyclic_judgment.rs:23 (failed: if_false)rule "equivalent"cyclic_judgment.rs:24sub failedcyclic_judgment.rs:13args
rule "equivalent"cyclic_judgment.rs:24sub failedcyclic_judgment.rs:13args
rule "equivalent"cyclic_judgment.rs:23 (failed: if_false)
rule "same class"cyclic_judgment.rs:30 (failed: if_false)
rule "equivalent"cyclic_judgment.rs:24sub failedcyclic_judgment.rs:13args
rule "equivalent"cyclic_judgment.rs:23 (failed: if_false)rule "equivalent"cyclic_judgment.rs:24sub failedcyclic_judgment.rs:13args
rule "same class"cyclic_judgment.rs:30 (failed: if_false)