diff options
| author | J08nY | 2018-07-02 18:04:15 +0200 |
|---|---|---|
| committer | J08nY | 2018-07-02 18:08:52 +0200 |
| commit | 26d89788658df8a65eebc64eff021882efc1e819 (patch) | |
| tree | 4116b1354f569a8955f6ce7c098ffaa874b89a4c /test/common.sh | |
| parent | f2b30a0bdbc46c3c7651ea0efb657d99a7369447 (diff) | |
| download | ecgen-26d89788658df8a65eebc64eff021882efc1e819.tar.gz ecgen-26d89788658df8a65eebc64eff021882efc1e819.tar.zst ecgen-26d89788658df8a65eebc64eff021882efc1e819.zip | |
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 |
