fix: fixed edge cases to get flat encode and decode working with stress test case
This commit is contained in:
@@ -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)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user