File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ save: function [
112
112
file? where [write where data] ; WRITE converts to UTF-8, saves overhead
113
113
url? where [write where data] ; But some schemes don't support it
114
114
none? where [data] ; just return the UTF-8 binary
115
- 'else [insert tail where data] ; string! or binary!, insert data
115
+ 'else [append where data] ; string! or binary!, insert data
116
116
]
117
117
]
118
118
Original file line number Diff line number Diff line change @@ -54,7 +54,13 @@ Rebol [
54
54
55
55
===end-group===
56
56
57
- ===start-group=== "Invalid SAVE"
57
+ ===start-group=== "SAVE function"
58
+ --test-- "SAVE to binary!"
59
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/1909
60
+ --assert "1" = load save #{} "1"
61
+ --assert #{ CAFE } = load save #{} #{ CAFE }
62
+ --assert [1 2 ] = load save #{} [1 2 ]
63
+
58
64
--test-- "invalid image SAVE"
59
65
--assert error? try [save %temp.bmp [1 2 ]]
60
66
--assert error? try [save %temp.png [1 2 ]]
You can’t perform that action at this time.
0 commit comments