File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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' ) ;
You can’t perform that action at this time.
0 commit comments