Support ProcBin in binary_to_atom_2 tests
@@ -58,6 +58,9 @@ fn with_utf8_binary_with_encoding_returns_atom_with_binary_name() {
TypedTerm::Boxed(boxed) => match boxed.to_typed_term().unwrap() {
TypedTerm::HeapBinary(heap_binary) => heap_binary.as_bytes().to_vec(),
TypedTerm::SubBinary(subbinary) => subbinary.full_byte_iter().collect(),
+ TypedTerm::ProcBin(process_binary) => {
+ process_binary.as_bytes().to_vec()
+ }
unboxed_typed_term => {
panic!("unboxed_typed_term = {:?}", unboxed_typed_term)
}
