3 echo "some data" > file
5 println "+ zstd --memory=32LB file"
6 zstd --memory=32LB file && die "Should not allow bogus suffix"
7 println "+ zstd --memory=32LiB file"
8 zstd --memory=32LiB file && die "Should not allow bogus suffix"
9 println "+ zstd --memory=32A file"
10 zstd --memory=32A file && die "Should not allow bogus suffix"
11 println "+ zstd --memory=32r82347dn83 file"
12 zstd --memory=32r82347dn83 file && die "Should not allow bogus suffix"
13 println "+ zstd --memory=32asbdf file"
14 zstd --memory=32asbdf file && die "Should not allow bogus suffix"
15 println "+ zstd --memory=hello file"
16 zstd --memory=hello file && die "Should not allow non-numeric parameter"
17 println "+ zstd --memory=1 file"
18 zstd -q --memory=1 file && die "Should allow numeric parameter without suffix"
20 println "+ zstd --memory=1K file"
21 zstd -q --memory=1K file && die "Should allow numeric parameter with expected suffix"
23 println "+ zstd --memory=1KB file"
24 zstd -q --memory=1KB file && die "Should allow numeric parameter with expected suffix"
26 println "+ zstd --memory=1KiB file"
27 zstd -q --memory=1KiB file && die "Should allow numeric parameter with expected suffix"
29 println "+ zstd --memory=1M file"
30 zstd -q --memory=1M file && die "Should allow numeric parameter with expected suffix"
32 println "+ zstd --memory=1MB file"
33 zstd -q --memory=1MB file && die "Should allow numeric parameter with expected suffix"
35 println "+ zstd --memory=1MiB file"
36 zstd -q --memory=1MiB file && die "Should allow numeric parameter with expected suffix"