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 ('trylevel, 555, 'mumble),
95 ?putprop ('maxmin, 666, 'blurf),
96 ?putprop ('nummod, 777, 'barf),
103 [?get ('conjugate, 'foo),
104 ?get (nounify ('erf_generalized), 'bar),
107 ?get ('trylevel, 'mumble),
108 ?get ('maxmin, 'blurf),
109 ?get ('nummod, 'barf)];
110 [111, 222, 333, 444, 555, 666, 777];
113 apply (kill, [nounify ('erf_generalized)]),
115 kill (nset, trylevel, maxmin, nummod),
119 [?get ('conjugate, 'foo),
120 ?get (nounify ('erf_generalized), 'bar),
123 ?get ('trylevel, 'mumble),
124 ?get ('maxmin, 'blurf),
125 ?get ('nummod, 'barf)];
126 [false, false, false, false, false, false, false];
128 /* verify that props is empty after kill(all) -- pre-bugfix behavior is that props
129 * has several built-in symbols before and after kill(all)
132 /* this test fails due to bug in kill(rules); see SF bug #3289 */
136 /* workaround bug #3289 */
138 not some (lambda ([x], member (x, props)),
139 ['conjugate, nounify ('erf_generalized), 'beta, 'nset, 'trylevel, 'maxmin, 'nummod]));
142 (reset(use_fast_arrays),1);