jnioche / carbonintensity-api

A simple Rust library to retrieve data from https://api.carbonintensity.org.uk/
Apache License 2.0
10 stars 1 forks source link

More tests for date handling #14

Closed xoen closed 1 month ago

xoen commented 1 month ago

Internal utility functions like to_tuples() and normalise_dates() are not testes.

Tests help prevent regressions and allows for refactoring.