Tests for digit utils