purescript-datetime
purescript-datetime copied to clipboard
Adding tests that cover the ecma262 specs
Extending the tests to follow the JS Ecma262 specs for Date object.
- [x] turn the specs into something reasonably readable
- [ ] work out what tests need to be added/moved to cover these specs
- [ ] potentially have TODO tests for non existent functionality
I've converted the specs to something readable but need some pointers as to what in the current tests might relate to the specs, also what new tests I might need. As I'm not quite able to make the correlation between specs and current tests. 😄
would I be better off just setting up a whole new set of tests to make sure the library matches the specs? I'm slightly reluctant as naming differ and don't want to take out tests that would be required, but I'm keen to keep things moving.
Yeah, I'd just make new tests for the spec stuff, and have them live together/structured similarly to the spec so they can be easily compared with the spec. I don't think it does any harm to potentially have two tests for the same thing, if it so happens that some of the existing tests were covering the same aspects.