about summary refs log tree commit diff
path: root/tests
AgeCommit message (Collapse)Author
3 daysExpose Spearman, so both methods work without a dataset file mainPjotr Prins
`Spearman` was a private struct, so only `Pearson` could be constructed from outside the crate: a caller that already holds two value vectors -- a request handler, an enrichment step, a test -- could not compute the rank correlation without going through `Compute`, which means writing the dataset to a file and reading the result back out of a CSV. That is why `Pearson` was public and `Spearman` was not, and it is not a distinction worth keeping: the p-value code is the same either way. `Compute` remains the streaming path for a whole dataset. tests/in_memory.rs is an integration test (outside the crate, so it can only use the public surface) covering the three pieces that path needs: both methods in memory, the positional row parser dropping unparseable values together with their x, and the |r|-descending/NaN-last ordering. Also documents `Compute::sorter`, which orders by *signed* r while `custom_float_sorter` -- the one `compute` uses -- orders by magnitude. The two disagree for negative correlations; left as is because it is public API, but no longer silent.
2022-08-06Fix testsFrederick Muriuki Muriithi
- Eliminate hard-coded absolute paths from the tests and replace them with relative paths - Update tests where data formats have changed
2022-08-06Remove unnecessary parsingFrederick Muriuki Muriithi
JSON already has a way to denote an array of objects, so there is no need to manually parse such arrays from strings.
2022-07-04add output file pathAlexander_Kabui
2022-05-19update json objectAlexander
2022-05-18mv test files to tests/dataAlexander