We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02cf23b commit ad8d9c3Copy full SHA for ad8d9c3
test/org/osflash/signals/SlotListTest.test.ts
@@ -44,6 +44,14 @@ describe("SlotListTest", () => {
44
assert.equal(0, SlotList.NIL.length);
45
});
46
47
+ it("NIL_can_not_append_a_new_slot", () => {
48
+ let list: SlotList = SlotList.NIL.append(slotA);
49
+ // list should be a new SlotList with only one element
50
+ assert.equal(1, list.length);
51
+ // append a element to NIL should not change it's length
52
+ assert.equal(0, SlotList.NIL.length);
53
+ });
54
+
55
it("tail_defaults_to_NIL_if_omitted_in_constructor", () => {
56
const noTail: SlotList = new SlotList(slotA);
57
assert.equal(SlotList.NIL, noTail.tail);
0 commit comments