summaryrefslogtreecommitdiff
path: root/tests/expected/misc/strtosize
blob: d1c039d2df2e38b67c450d584ed4e9b6c506878b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
test_strutils: invalid size '-1' value
                        0 :                    0
                        1 :                    1
                      123 :                  123
     18446744073709551615 : 18446744073709551615
                       1K :                 1024
                     1KiB :                 1024
                       1M :              1048576
                     1MiB :              1048576
                       1G :           1073741824
                     1GiB :           1073741824
                       1T :        1099511627776
                     1TiB :        1099511627776
                       1P :     1125899906842624
                     1PiB :     1125899906842624
                       1E :  1152921504606846976
                     1EiB :  1152921504606846976
                      1KB :                 1000
                      1MB :              1000000
                      1GB :           1000000000
                      1TB :        1000000000000
                      1PB :     1000000000000000
                      1EB :  1000000000000000000
test_strutils: invalid size '' value
test_strutils: invalid size ' ' value
                        1 :                    1
test_strutils: invalid size '1 ' value
                     0x0a :                   10
                   0xff00 :                65280
               0x80000000 :           2147483648