Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.human.io: Don't accept ambiguous durations by default | Matthew Wild | 2023-11-30 | 1 | -1/+32 |
| | | | | | The new method parse_duration_lax() exports the old behaviour, mainly for compatibility purposes. | ||||
* | util.human.io: Add tests for parse_duration() (some failing) | Kim Alvefur | 2023-07-16 | 1 | -0/+9 |
| | |||||
* | util.human.io: Include relevant arguments in test messages | Kim Alvefur | 2023-07-16 | 1 | -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 numbers | Kim Alvefur | 2023-07-16 | 1 | -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 string | Matthew Wild | 2023-04-07 | 1 | -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 pieces | Kim Alvefur | 2021-11-12 | 1 | -0/+19 |
| | | | | Down the rabbit hole we go... | ||||
* | util.human.io: Add brief test of table generation | Kim Alvefur | 2020-06-28 | 1 | -0/+29 |