Add unittest for issue 6381.

To prevent regressions.
Merge pull request #1531 from quickfur/issue6381

Add unittest for issue 6381 (std.math.floor/ceil should be pure)