cmd/glzip/testdata/compress_dictionary_size.ct
raw| 1 | # SPDX-FileCopyrightText: 2024 Shun Sakai |
| 2 | # |
| 3 | # SPDX-License-Identifier: Apache-2.0 OR MIT |
| 4 | |
| 5 | $ glzip -dictionary-size 4194304 foo.txt |
| 6 | $ cat foo.txt --> FAIL |
| 7 | $ glzip -decompress foo.txt.lz |
| 8 | $ cat foo.txt |
| 9 | Hello, world! |
| 10 | |
| 11 | $ glzip -dictionary-size 4095 foo.txt --> FAIL |
| 12 | glzip: lzip: dictionary size is too small |
| 13 | |
| 14 | $ glzip -dictionary-size 536870913 foo.txt --> FAIL |
| 15 | glzip: lzip: dictionary size is too large |