duckscript/test/std/string/bytes_test.ds
2020-01-31 14:41:31 +00:00

10 lines
175 B
Plaintext

fn test_binary_string
handle = string_to_bytes "hello world"
text = bytes_to_string ${handle}
release ${handle}
assert_eq ${text} "hello world"
end