Test runner, fixed decoder
This commit is contained in:
parent
f7ef75afb5
commit
afff299dfa
|
@ -134,7 +134,7 @@ fn unfuck_cif_number(number: &str) -> Result<u32> {
|
|||
};
|
||||
return Ok(u32::from(*thousands) * 1000 + u32::from(*remainder))
|
||||
}
|
||||
Ok((*nummap::U16_NUMMAP.get(&buf).ok_or_else(|| GrammarError(number.to_string()))?).into())
|
||||
Ok((*nummap::U16_NUMMAP.get(number).ok_or_else(|| GrammarError(number.to_string()))?).into())
|
||||
}
|
||||
|
||||
fn unfuck_cif_number_fast(number: &str) -> Result<u8> {
|
||||
|
|
8
test_runner.sh
Executable file
8
test_runner.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/sh
|
||||
|
||||
for image in ../cif-tests/valid/*.cif; do
|
||||
echo "Running test on $image"
|
||||
./zardzewialy-dekoder-cif $image aaa.png
|
||||
echo ""
|
||||
done
|
||||
|
Loading…
Reference in a new issue