There is a subtle difference in your use here vs. the described use in the article. For a test, I think ``actual`` should be within the epsilon of ``expected``. Picking the larger number here rather than just using ``expected`` means the size of ``actual`` will affect the accepted range for the comparison if it is larger than ``expected``.

Is this by design or by accident?