Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit tests for .xts() checking index class and timezone
As documented in #249, v0.11 introduced changes to .xts() which altered behaviour compared to v0.10-2. As a first step to fixing this regression, this commit adds unit tests for all possible permutations for setting the index class and timezone in .xts(). The tests check accessing the class in 3 different ways: 1. Using tclass() 2. Using indexClass() 3. Checking the 'tclass' attribute on the index object Similarly the tests check accessing timezone by: 1. Using tzone() 2. Using indexTZ() 3. Checking the '.indexTZ' attribute on the index object These tests are designed to document the behaviour as of v0.10-2. As such they pass on v0.10-2 but fail for v0.11.
- Loading branch information