@@ -844,6 +844,7 @@ fn main() -> Result<Unit, MyError> {
844844 let bytes_len = Bytes.len(value: read joined)
845845 let bytes_empty = Bytes.is_empty(value: read joined)
846846 let bytes_slice = Bytes.slice(value: read joined, start: 1, len: 2)
847+ let bytes_text = Bytes.to_string(value: read bytes_slice)
847848
848849 let buffer = Buffer.new(size: 16)
849850 let buffer_len = Buffer.len(buffer: read buffer)
@@ -1365,6 +1366,7 @@ fn inspect_file(path: read Path, bytes: read Bytes) -> Result<String, FileError>
13651366 let exists = Directory.exists(path: read path)
13661367 let metadata = Directory.metadata(path: read path)?
13671368 let length = metadata_len(metadata: read metadata)
1369+ let byte_text = Bytes.to_string(value: read bytes)
13681370 let text = Directory.read_string(path: read path)?
13691371 Directory.write_string(path: read path, content: read text)?
13701372 let file_hash = Hash.sha256_file(path: read path)?
@@ -1414,6 +1416,7 @@ fn fetch_status(url: read Url) -> Result<Int, HttpError> {
14141416 assert ! ( rust. contains( "rsscript_runtime::directory_write_string(path, &(text))?;" ) ) ;
14151417 assert ! ( rust. contains( "let file_hash = rsscript_runtime::hash_sha256_file(path)?;" ) ) ;
14161418 assert ! ( rust. contains( "let byte_hash = rsscript_runtime::hash_sha256_bytes(bytes);" ) ) ;
1419+ assert ! ( rust. contains( "let byte_text = rsscript_runtime::bytes_to_string(bytes);" ) ) ;
14171420 assert ! ( rust. contains( "let current = rsscript_runtime::env_current_dir()?;" ) ) ;
14181421 assert ! ( rust. contains( "let run_root = rsscript_runtime::env_run_workspace_root();" ) ) ;
14191422 assert ! ( rust. contains( "rsscript_runtime::env_set_current_dir(&(current))?;" ) ) ;
0 commit comments