Francisco Javier Jurado Moreno
|
eddc59f4a9
|
Add comment to header explaining format and exceptions
|
2024-05-28 14:19:49 +02:00 |
|
Francisco Javier Jurado Moreno
|
c8d00b3a78
|
Fix style
|
2024-05-28 14:11:57 +02:00 |
|
Francisco Javier Jurado Moreno
|
9c85d6a8c7
|
Add missing pragma once
|
2024-05-28 14:10:54 +02:00 |
|
Francisco Javier Jurado Moreno
|
6c2da59c9a
|
Add missing extern consts
|
2024-05-28 14:10:36 +02:00 |
|
Francisco Javier Jurado Moreno
|
da9ebd41a9
|
More tests for unusual cases
|
2024-05-28 12:57:32 +02:00 |
|
Francisco Javier Jurado Moreno
|
a25c4676da
|
Update examples for fromReadableDecimalSize
|
2024-05-28 12:50:07 +02:00 |
|
Francisco Javier Jurado Moreno
|
25f4430fbc
|
Add regular docs for formatReadableSize flavours
|
2024-05-28 12:42:06 +02:00 |
|
Francisco Javier Jurado Moreno
|
16fb16ae26
|
Add code documentation for all flavours of fromReadable
|
2024-05-28 12:28:15 +02:00 |
|
Francisco Javier Jurado Moreno
|
53aeae3037
|
Add cosmetic newline
|
2024-05-28 11:52:02 +02:00 |
|
Francisco Javier Jurado Moreno
|
581982739f
|
Remove unnecessary quoting in exception message
|
2024-05-28 10:00:32 +02:00 |
|
Francisco Javier Jurado Moreno
|
ed1d933e53
|
Update dict ignore
|
2024-05-28 10:00:12 +02:00 |
|
Francisco Javier Jurado Moreno
|
512afefd6f
|
Add comments to indicate that test files should be kept in sync
|
2024-05-28 09:59:09 +02:00 |
|
Francisco Javier Jurado Moreno
|
5bfdebde86
|
Rename test files
|
2024-05-28 09:57:44 +02:00 |
|
Francisco Javier Jurado Moreno
|
35ce67a76e
|
Add tests for new UInt64 logic
|
2024-05-28 09:54:52 +02:00 |
|
Francisco Javier Jurado Moreno
|
ef42050ce0
|
Make fromReadableSize return UInt64 again
|
2024-05-28 09:48:34 +02:00 |
|
Francisco Javier Jurado Moreno
|
ac8186d02f
|
Add missing brackets
|
2024-05-28 09:33:47 +02:00 |
|
Francisco Javier Jurado Moreno
|
64532f8484
|
Inline throw exceptions
|
2024-05-28 09:32:41 +02:00 |
|
Francisco Javier Jurado Moreno
|
b05501f82c
|
Explicit else in exception handling
|
2024-05-28 09:28:26 +02:00 |
|
Francisco Javier Jurado Moreno
|
ad647786a1
|
Move scale factor pull out of the parsing loop
|
2024-05-28 09:26:07 +02:00 |
|
Francisco Javier Jurado Moreno
|
8d684cef3b
|
Sync new tests from formatreadabledecimal
|
2024-05-28 08:16:42 +02:00 |
|
Francisco Javier Jurado Moreno
|
5aa38b6dd8
|
Add orZero and orNull flavours to fromReadableDecimal tests
|
2024-05-28 08:13:45 +02:00 |
|
Francisco Javier Jurado Moreno
|
28464d385d
|
Add tests for the orNull and orZero flavours of fromReadableSize
|
2024-05-28 08:10:00 +02:00 |
|
Francisco Javier Jurado Moreno
|
8608d457ad
|
Add check to ensure column passed to function implementation is of type String
|
2024-05-28 08:01:58 +02:00 |
|
Francisco Javier Jurado Moreno
|
f5a80dfcf5
|
Add support for orZero and orNull to both flavours of fromReadable
|
2024-05-28 07:55:20 +02:00 |
|
Francisco Javier Jurado Moreno
|
3f9d330180
|
Support different error handlings
|
2024-05-27 18:39:18 +02:00 |
|
Francisco Javier Jurado Moreno
|
c5d5c32ee1
|
Remove unnecessary extern error codes
|
2024-05-27 16:57:54 +02:00 |
|
Francisco Javier Jurado Moreno
|
c2dd92793a
|
Add tests for fromReadableDecimalSize
|
2024-05-27 16:56:26 +02:00 |
|
Francisco Javier Jurado Moreno
|
c1de6a2756
|
Extract fromreadabledecimalsize to its own function
|
2024-05-27 16:55:00 +02:00 |
|
Francisco Javier Jurado Moreno
|
41dbd5e6f8
|
Extract common behaviour to fromReadable & parametrize
|
2024-05-27 16:54:29 +02:00 |
|
Francisco Javier Jurado Moreno
|
53b1379d5f
|
Keep only Impl
|
2024-05-27 16:54:07 +02:00 |
|
Francisco Javier Jurado Moreno
|
dc65301b5d
|
Add tests
|
2024-05-27 16:53:16 +02:00 |
|
Francisco Javier Jurado Moreno
|
b5daa653ee
|
At even more tests
|
2024-05-27 15:22:44 +02:00 |
|
Francisco Javier Jurado Moreno
|
7dcfb55021
|
Update documentation to reflect new type
|
2024-05-27 15:09:30 +02:00 |
|
Francisco Javier Jurado Moreno
|
0db331249d
|
Change return type to Float64
|
2024-05-27 15:07:31 +02:00 |
|
Francisco Javier Jurado Moreno
|
24d9b6804e
|
Make scale literals long to avoid truncation
|
2024-05-27 14:42:32 +02:00 |
|
Francisco Javier Jurado Moreno
|
18787b33cf
|
Add more tests
|
2024-05-27 14:38:09 +02:00 |
|
Francisco Javier Jurado Moreno
|
5397cd5bdb
|
Extract exception throwing to its own function
|
2024-05-27 13:38:18 +02:00 |
|
Francisco Javier Jurado Moreno
|
dd4e42c62d
|
Rework parser to use existing parser functions instead of custom code
|
2024-05-27 13:26:33 +02:00 |
|
Francisco Javier Jurado Moreno
|
fc67d54128
|
Do not ignore trailing whitespace and periods
|
2024-05-27 12:06:13 +02:00 |
|
Francisco Javier Jurado Moreno
|
8f42eb6ac7
|
Move useDefaultImplementationforconstants up, compact one-line function definitions
|
2024-05-27 11:59:11 +02:00 |
|
Francisco Javier Jurado Moreno
|
de843aad15
|
Use FunctionArgumentDescriptor for argument valdation
|
2024-05-27 11:57:38 +02:00 |
|
Francisco Javier Jurado Moreno
|
b6dfa25ca4
|
Get rid of single-use constant
|
2024-05-27 11:45:08 +02:00 |
|
Francisco Javier Jurado Moreno
|
28640e4323
|
Expand the values of the size mapping
|
2024-05-27 11:44:32 +02:00 |
|
Francisco Javier Jurado Moreno
|
6db2a42d19
|
Unindent contents of anonymous namespace
|
2024-05-27 11:42:27 +02:00 |
|
Francisco Javier Jurado Moreno
|
6d710d06a6
|
Remove trailing whitespace
|
2024-05-25 20:33:22 +02:00 |
|
Francisco Javier Jurado Moreno
|
ce2025676f
|
add check for result being too big to be represented in output
|
2024-05-25 20:25:37 +02:00 |
|
Francisco Javier Jurado Moreno
|
bc9cfb0584
|
Remove fromReadableSize from undocumented function test reference
|
2024-05-25 10:38:39 +02:00 |
|
Francisco Javier Jurado Moreno
|
664c9358ca
|
Fix typos in docstring
|
2024-05-25 08:22:48 +02:00 |
|
Francisco Javier Jurado Moreno
|
12760dddae
|
Fix typos in doc
|
2024-05-25 07:55:36 +02:00 |
|
Francisco Javier Jurado Moreno
|
c5b70f595e
|
Make unit case-insensitive
|
2024-05-25 07:52:26 +02:00 |
|