forked from syndicate-lang/preserves
SequenceStream not required in tests
This commit is contained in:
parent
04ecbe03e3
commit
64c7de832e
|
@ -72,7 +72,8 @@ class StringStream extends SimpleStream { constructor(items) { super(1, 1, items
|
||||||
class BytesStream extends SimpleStream { constructor(items) { super(1, 2, items); }}
|
class BytesStream extends SimpleStream { constructor(items) { super(1, 2, items); }}
|
||||||
class SymbolStream extends SimpleStream { constructor(items) { super(1, 3, items); }}
|
class SymbolStream extends SimpleStream { constructor(items) { super(1, 3, items); }}
|
||||||
class RecordStream extends SimpleStream { constructor(items) { super(2, 0, items); }}
|
class RecordStream extends SimpleStream { constructor(items) { super(2, 0, items); }}
|
||||||
class SequenceStream extends SimpleStream { constructor(items) { super(2, 1, items); }}
|
// Not needed -- an ordinary array will do!
|
||||||
|
// class SequenceStream extends SimpleStream { constructor(items) { super(2, 1, items); }}
|
||||||
class SetStream extends SimpleStream { constructor(items) { super(2, 2, items); }}
|
class SetStream extends SimpleStream { constructor(items) { super(2, 2, items); }}
|
||||||
class DictionaryStream extends SimpleStream { constructor(items) { super(2, 3, items); }}
|
class DictionaryStream extends SimpleStream { constructor(items) { super(2, 3, items); }}
|
||||||
|
|
||||||
|
@ -117,17 +118,15 @@ describe('common test suite', () => {
|
||||||
back: List() },
|
back: List() },
|
||||||
bytes1: { forward: new BytesStream([Bytes('he'), Bytes('ll'), Bytes('o')]),
|
bytes1: { forward: new BytesStream([Bytes('he'), Bytes('ll'), Bytes('o')]),
|
||||||
back: Bytes('hello') },
|
back: Bytes('hello') },
|
||||||
list1: { forward: new SequenceStream([1, 2, 3, 4]),
|
list1: { forward: [1, 2, 3, 4],
|
||||||
back: List([1, 2, 3, 4]) },
|
back: List([1, 2, 3, 4]) },
|
||||||
list2: {
|
list2: {
|
||||||
forward: new SequenceStream([
|
forward: [ new StringStream([Bytes('abc')]),
|
||||||
new StringStream([Bytes('abc')]),
|
new StringStream([Bytes('def')]), ],
|
||||||
new StringStream([Bytes('def')]),
|
|
||||||
]),
|
|
||||||
back: List(["abc", "def"])
|
back: List(["abc", "def"])
|
||||||
},
|
},
|
||||||
list3: {
|
list3: {
|
||||||
forward: new SequenceStream([List(["a", 1]), List(["b", 2]), List(["c", 3])]),
|
forward: [List(["a", 1]), List(["b", 2]), List(["c", 3])],
|
||||||
back: List([List(["a", 1]), List(["b", 2]), List(["c", 3])])
|
back: List([List(["a", 1]), List(["b", 2]), List(["c", 3])])
|
||||||
},
|
},
|
||||||
record2: { value: Observe(new Record(Symbol.for("speak"), [
|
record2: { value: Observe(new Record(Symbol.for("speak"), [
|
||||||
|
|
Loading…
Reference in New Issue