1 (use_fast_arrays:true,array(bil,3),0);
10 [false, 3, false,false];
19 use_fast_arrays:false;
30 [''?munbound,''?munbound,3,''?munbound];
48 use_fast_arrays: false;
51 block ([use_fast_arrays : true], kill (foo), foo [2] : 'x, foo [3] : 'y, foo [5] : 'z, foo [7] : 'a, sort (listarray (foo)));
54 /* Bug #2978: "kill(a[i])" doesn't work with fast arrays */
56 block ([use_fast_arrays : true,
64 /* Check that indices get evaluated */
67 sort (listarray (foo)));
70 block ([use_fast_arrays : true,
78 /* Check that indices get evaluated */
81 sort (listarray (foo)));
84 /* kill(all) erases display properties for conjugate
85 * mailing list 2017-02-24: "kill(all) results in non-default display options in wxMaxima"
86 * Verify here that properties list for conjugate and friends is not reset by kill(all),
87 * but it is reset by kill(foo) where foo = conjugate or friend.
90 (?putprop ('conjugate, 111, 'foo),
91 ?putprop (nounify ('erf_generalized), 222, 'bar),
92 ?putprop ('beta, 333, 'baz),
93 ?putprop ('nset, 444, 'quux),
94 ?putprop ('maxmin, 666, 'blurf),
95 ?putprop ('nummod, 777, 'barf),
102 [?get ('conjugate, 'foo),
103 ?get (nounify ('erf_generalized), 'bar),
106 ?get ('maxmin, 'blurf),
107 ?get ('nummod, 'barf)];
108 [111, 222, 333, 444, 666, 777];
111 apply (kill, [nounify ('erf_generalized)]),
113 kill (nset, maxmin, nummod),
117 [?get ('conjugate, 'foo),
118 ?get (nounify ('erf_generalized), 'bar),
121 ?get ('maxmin, 'blurf),
122 ?get ('nummod, 'barf)];
123 [false, false, false, false, false, false];
125 /* verify that props is empty after kill(all) -- pre-bugfix behavior is that props
126 * has several built-in symbols before and after kill(all)
129 /* this test fails due to bug in kill(rules); see SF bug #3289 */
133 /* workaround bug #3289 */
135 not some (lambda ([x], member (x, props)),
136 ['conjugate, nounify ('erf_generalized), 'beta, 'nset, 'maxmin, 'nummod]));
139 (reset(use_fast_arrays),1);