From da9b1a893df8a2a1989ebaebead831eba006be2c Mon Sep 17 00:00:00 2001 From: arty Date: Sat, 6 Jul 2024 10:58:02 -0700 Subject: [PATCH] Inadvertent change --- src/compiler/clvm.rs | 2 +- src/tests/classic/run.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/compiler/clvm.rs b/src/compiler/clvm.rs index 3c912807..41a8b4cb 100644 --- a/src/compiler/clvm.rs +++ b/src/compiler/clvm.rs @@ -305,7 +305,7 @@ pub fn convert_from_clvm_rs( } else { Ok(Rc::new(SExp::Integer(loc, integer))) } - } else if int_conv && !printable(atom_data, false) { + } else if int_conv && !printable(atom_data, true) { Ok(Rc::new(SExp::QuotedString(loc, b'x', atom_data.to_vec()))) } else { Ok(Rc::new(SExp::Atom(loc, atom_data.to_vec()))) diff --git a/src/tests/classic/run.rs b/src/tests/classic/run.rs index d64369ee..b38fc2a5 100644 --- a/src/tests/classic/run.rs +++ b/src/tests/classic/run.rs @@ -2440,5 +2440,8 @@ fn test_quote_string_generation() { let brun_result = do_basic_brun(&vec!["brun".to_string(), program]) .trim() .to_string(); - assert_eq!(brun_result, "(0x7465737422 \"test'\" \"test hi\" 0x7465737422 \"test'\" \"test_hi\")"); + assert_eq!( + brun_result, + "(0x7465737422 \"test'\" \"test hi\" 0x7465737422 \"test'\" \"test_hi\")" + ); }