blob: 572214e7ec8ee388552d30a8800a0be2bdf327c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|