From 19fd6a0e8c55bb2e67d8e6cba8a33d1ac25943a2 Mon Sep 17 00:00:00 2001 From: Turner Date: Mon, 20 Jun 2022 14:40:36 -0700 Subject: [PATCH] Add comment explaining why that test is only one-way --- crates/uplc/tests/integ_tests.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/uplc/tests/integ_tests.rs b/crates/uplc/tests/integ_tests.rs index c6418236..c9ee5a49 100644 --- a/crates/uplc/tests/integ_tests.rs +++ b/crates/uplc/tests/integ_tests.rs @@ -77,7 +77,11 @@ fn fibonacci() { #[test] fn one_way_fibonacci() { let bytes = include_bytes!("../test_data/fibonacci/fibonacci.flat"); + // This code doesn't match the expected `i_unique` naming scheme, so it can't be round-tripped. + // We still want to test these "unsanitary" cases because we can't control the naming pattern + // the consumer uses. We just can't guarantee that the decoded Flat bytes will match their + // names. let code = include_str!("../test_data/fibonacci/unsanitary_fibonacci.uplc"); parsed_program_matches_decoded_bytes(bytes, code); -} \ No newline at end of file +}