diff options
author | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-18 15:52:21 -0500 |
---|---|---|
committer | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-18 15:52:21 -0500 |
commit | 2d1481ce953a869b129bf2c98d7c084d7180f8a3 (patch) | |
tree | 3b68e6eb3c9c36715db320dc9cd99bdc0e583865 /tests/space_file.js | |
parent | d024510e8d2e75683f5499cac54271f1bdbfd498 (diff) |
tested search and file functions; fixed relevant bugs
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..84e42a3 --- /dev/null +++ b/tests/space_file.js @@ -0,0 +1,14 @@ +// Tests Space.{to,from}file +const space = require('../space') + +text = new space.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 |