Skip to content

Commit

Permalink
Failing test for symmetryinvestments#268
Browse files Browse the repository at this point in the history
  • Loading branch information
atilaneves committed Oct 27, 2020
1 parent b1b2d4b commit f8f9add
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/issues/source/issues.d
Original file line number Diff line number Diff line change
Expand Up @@ -284,3 +284,8 @@ struct MethodWithScopeSafeDelegate {
return cb(i, 33.3, Struct());
}
}


struct Issue268 {
int i;
}
8 changes: 8 additions & 0 deletions tests/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,11 @@ def test_method_delegate_safe_scope():
from issues import MethodWithScopeSafeDelegate
m = MethodWithScopeSafeDelegate()
assert m.fun(3, lambda i, d, s: i * 2) == 6


def test_issue_268():
import pytest
from issues import Issue268
assert Issue268(1) != Issue268(2)
with pytest.raises(AssertionError):
assert Issue268(42) == Issue268(42)

0 comments on commit f8f9add

Please sign in to comment.