klayout/testdata/python
Thomas Ferreira de Lima 214662997c
Changing pya.CplxTrans.angle test from assertEqual to assertAlmostEqual
Rationale:
pya.CplxTrans.angle is computed by doing atan2(m_sin, m_cos), but the algorithm used both in C and python for sin, cos and atan2 are not as precise as IEEE's float.

In python, for example, this happens:

``` python
>>> from math import pi, cos, sin, atan2
>>> atan2(sin(45*pi/180), cos(45*pi/180)) * 180 / pi == 45
False
>>> atan2(sin(45*pi/180), cos(45*pi/180)) * 180 / pi, 45
(44.99999999999999, 45)
```
2018-09-22 15:15:33 -04:00
..
basic.py Merge branch 'master' into macos-build-on-master 2018-01-02 23:37:45 +01:00
dbLayoutTest.py Bugfix #109 (part 3): OASIS/GDS writer fixed + unit test added. 2018-04-06 23:27:29 +02:00
dbPCells.py A few enhancements and unit tests for PCells 2018-02-17 01:26:25 +01:00
dbPolygonTest.py Updated copyright note to 2018. 2018-01-01 21:08:06 +01:00
dbReaders.py WIP: consistent naming of some predicates in Ruby with ?, unit tests for reader option bindings. 2018-04-17 01:56:59 +02:00
dbRegionTest.py Updated copyright note to 2018. 2018-01-01 21:08:06 +01:00
dbTransTest.py Changing pya.CplxTrans.angle test from assertEqual to assertAlmostEqual 2018-09-22 15:15:33 -04:00
qtbinding.py Merge branch 'master' into macos-build-on-master 2018-01-02 23:37:45 +01:00
tlTest.py Updated copyright note to 2018. 2018-01-01 21:08:06 +01:00