Debian Codegraph @

tests/issues/test_issue_139.py

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2
3 """
4 Test fix of bug described in GitHub Issue #139.
5 """
6
7 from sure import expect
8
9
10 def test_issue_139():
11 "Test for GitHub Issue #139"
12 # test with big epsilon
13 expect(1.).should.equal(5., 4.)
14
15 # shouldn't raise IndexError: tuple index out of range
16 try:
17 expect(1.).should.equal(5., 3.)
18 except AssertionError:
19 pass
20 else:
21 raise RuntimeError('should not be equal')