From d024510e8d2e75683f5499cac54271f1bdbfd498 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Wed, 18 Dec 2019 14:42:20 -0500 Subject: tested and fixed processing bugs in space --- tests/space_fromfetch.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/space_fromfetch.js (limited to 'tests/space_fromfetch.js') diff --git a/tests/space_fromfetch.js b/tests/space_fromfetch.js new file mode 100644 index 0000000..2d8572a --- /dev/null +++ b/tests/space_fromfetch.js @@ -0,0 +1,9 @@ +// Tets Space.fromfetch +const space = require('../space') + +newspace = new space.Space() + +newspace.fromfetch({"4,2": {"content": " hhhhhhhh k hone ns ", "properties": {"writability": null, "cell_props": {}}}},[4,2,4,2],conform=false); +// Straight from a real tileUpdate + +console.log(newspace.data); //Should be an array of arrays of chars, representing the content of "content" above. -- cgit