diff options
Diffstat (limited to 'tests/space_file.js')
-rw-r--r-- | tests/space_file.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/space_file.js b/tests/space_file.js new file mode 100644 index 0000000..572214e --- /dev/null +++ b/tests/space_file.js @@ -0,0 +1,14 @@ +// Tests Space.{to,from}file +const Space = require('../space') + +text = new Space(); + +text.adhoc('\ +line of text\n\ +other&&\\\\&&line of text\n\ +\n\ +final\n'); + +text.tofile('local') +text.fromfile('local') +console.log(text.print()); //Should be losslessly transmitted, and local contains a copy |