Skip to content

Commit ab39bb4

Browse files
committed
chore: add some comments for tests
1 parent f36b1b3 commit ab39bb4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/suite/variables.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,13 @@ suite('Variables', async function () {
574574
/* member */
575575
await checkListMembers((await getMemberOf(getVar('custom_list_variable'), 'value')).var);
576576
});
577+
578+
/*
579+
* NOTE: for testing arrays use at least 2 elements, because
580+
* debuggers expand array pointer as ordinal pointer type,
581+
* so this test will be passed, even if array expansion
582+
* logic does not work as expected
583+
*/
577584

578585
/* Array members are rendered as actual array */
579586
test('Array members', async () => {
@@ -589,6 +596,7 @@ suite('Variables', async function () {
589596
return elements.map(x => x.item.description.trim());
590597
};
591598

599+
/* This test covers 2 expression types: member added and generic (with '!') */
592600
const arrayFieldElements = await getArrayElementsOf('array_field');
593601
assert.deepStrictEqual(['1', '2'], arrayFieldElements,
594602
'array_field contains 2 elements: 1, 2');

0 commit comments

Comments
 (0)