Skip to content

Commit

Permalink
Inadvertent change
Browse files Browse the repository at this point in the history
  • Loading branch information
prozacchiwawa committed Jul 6, 2024
1 parent 7617e02 commit da9b1a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compiler/clvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())))
Expand Down
5 changes: 4 additions & 1 deletion src/tests/classic/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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\")"
);
}

0 comments on commit da9b1a8

Please sign in to comment.