fix: fixed edge cases to get flat encode and decode working with stress test case

This commit is contained in:
Kasey White
2022-06-08 03:33:09 -04:00
parent 21d713ece3
commit be477917f2
5 changed files with 52 additions and 45 deletions

View File

@@ -36,7 +36,9 @@ fn main() -> anyhow::Result<()> {
let program = Program::<FakeNamedDeBruijn>::from_flat(&bytes)?;
println!("{:#?}", program);
let encoded_flat = program.to_flat()?;
println!("{}", encoded_flat.len());
assert!(bytes == encoded_flat)
}
},
}