diff options
author | Mark Wiebe <mwwiebe@gmail.com> | 2016-01-05 14:19:56 -0800 |
---|---|---|
committer | Mark Wiebe <mwwiebe@gmail.com> | 2016-01-05 14:20:06 -0800 |
commit | 8c55f58b7fe75d24ea9535a9dd1dffc65c0eae49 (patch) | |
tree | 54b73801ee36b6bbd850416a63d3ec1cf4451004 | |
parent | c1075345e7fe56683f849a3096516e7928744e68 (diff) | |
download | numpy-8c55f58b7fe75d24ea9535a9dd1dffc65c0eae49.tar.gz |
TST: Add datetime test distinguishing modified following from preceding
-rw-r--r-- | numpy/core/tests/test_datetime.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/core/tests/test_datetime.py b/numpy/core/tests/test_datetime.py index 563aa48fb..8a8eafee8 100644 --- a/numpy/core/tests/test_datetime.py +++ b/numpy/core/tests/test_datetime.py @@ -1524,6 +1524,12 @@ class TestDateTime(TestCase): assert_equal( np.busday_offset('2010-10-30', 0, roll='modifiedpreceding'), np.datetime64('2010-10-29')) + assert_equal( + np.busday_offset('2010-10-16', 0, roll='modifiedfollowing'), + np.datetime64('2010-10-18')) + assert_equal( + np.busday_offset('2010-10-16', 0, roll='modifiedpreceding'), + np.datetime64('2010-10-15')) # roll='raise' by default assert_raises(ValueError, np.busday_offset, '2011-06-04', 0) |