diff options
Diffstat (limited to 'test/common.sh')
| -rw-r--r-- | test/common.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/common.sh b/test/common.sh index 5e2cb38..c7fbb6e 100644 --- a/test/common.sh +++ b/test/common.sh @@ -35,4 +35,9 @@ strip_num() { num="${num:2}" num="${num##+(0)}" echo $num +} + +canonical_num() { + num=$(strip_num "$1") + echo "ibase=16;${num^^}" | bc }
\ No newline at end of file |
