elving/swag — pull request #12 by wpgreenway (2013-02-01 04:35:20+00:00)
Title: Random test failure in dates_test

I was having an issue where the test for {{now}} would periodically fail because of millisecond(s) difference between when the template was compiled and the assertion. I wasn't sure of the best way to avoid this, but this simple check that the time is included in a range of the last 5 milliseconds has worked well for me.