Add support for negative levels in --adapt=min and --adapt=max"

This commit is contained in:
Binh Vo
2021-06-11 12:13:09 -04:00
parent 2962583492
commit 6fad35c6a1
2 changed files with 20 additions and 2 deletions
+1
View File
@@ -1519,6 +1519,7 @@ then
println "\n===> adaptive mode "
roundTripTest -g270000000 " --adapt"
roundTripTest -g27000000 " --adapt=min=1,max=4"
roundTripTest -g27000000 " --adapt=min=-2,max=-1"
println "===> test: --adapt must fail on incoherent bounds "
datagen > tmp
zstd -f -vv --adapt=min=10,max=9 tmp && die "--adapt must fail on incoherent bounds"