aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_human_io_spec.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.human.io: Add tests for parse_duration() (some failing)Kim Alvefur2023-07-161-0/+9
|
* util.human.io: Include relevant arguments in test messagesKim Alvefur2023-07-161-1/+1
| | | | This way the relevant arguments are shown in case a test case fails
* util.human.io: Use tail call in test to get correct line numbersKim Alvefur2023-07-161-1/+1
| | | | | | This is probably not guaranteed to work and might vary with Lua version, but it's good enough for me to get accurate line numbers out of Busted that don't all point to the test() function.
* util.human.io: Add parse_duration() method to parse a duration stringMatthew Wild2023-04-071-0/+18
| | | | | Similar logic occurs throughout various modules in the codebase. We might even want a module:get_option_duration()??
* util.human.io: Fix cutting of UTF-8 into piecesKim Alvefur2021-11-121-0/+19
| | | | Down the rabbit hole we go...
* util.human.io: Add brief test of table generationKim Alvefur2020-06-281-0/+29