blob: 84e42a3cdc8fe4e16f42415a1831f6850474f759 (
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.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
|