File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 416
416
t = b .create_multi_tag(' unitsTest' , ' nixMultiTag' , da );
417
417
418
418
assert(isempty(t .units ));
419
+ try
420
+ t.units = ' mV' ;
421
+ catch ME
422
+ assert(strcmp(ME .identifier , ' MATLAB:class:SetProhibited' ));
423
+ end ;
424
+ try
425
+ t.units = [' mV' , ' uA' ];
426
+ catch ME
427
+ assert(strcmp(ME .identifier , ' MATLAB:class:SetProhibited' ));
428
+ end ;
429
+
419
430
units = {' mV' };
420
431
t.units = {' mV' };
421
432
assert(isequal(t .units ,units ));
Original file line number Diff line number Diff line change 316
316
assert(isempty(t1 .definition ));
317
317
318
318
assert(isempty(t1 .units ));
319
+ try
320
+ t1.units = ' mV' ;
321
+ catch ME
322
+ assert(strcmp(ME .identifier , ' MATLAB:class:SetProhibited' ));
323
+ end ;
324
+ try
325
+ t1.units = [' mV' , ' uA' ];
326
+ catch ME
327
+ assert(strcmp(ME .identifier , ' MATLAB:class:SetProhibited' ));
328
+ end ;
329
+
319
330
t1.units = {' ms' , ' mV' };
320
331
assert(isequal(t1 .units , {' ms' , ' mV' }));
321
332
You can’t perform that action at this time.
0 commit comments