| 1 |
Create simple Matrix: "xy", 10, 10, "x*y" |
| 2 |
a = Get value in cell: 3, 7 |
| 3 |
assert a = 21 |
| 4 |
a$ = Get value in cell: 3, 8 |
| 5 |
assert a$ = "24 (value in column 8 of row 3)" |
| 6 |
Get value in cell: 9, 8 |
| 7 |
assert info$() = "72 (value in column 8 of row 9)" + newline$ |
| 8 |
|
| 9 |
asserterror The command "Draw inner box" does not return anything; not assigned to the numeric variable "a". |
| 10 |
a = Draw inner box |
| 11 |
|
| 12 |
a# = Get all values in row: 6 |
| 13 |
assert a# = { 6, 12, 18, 24, 30, 36, 42, 48, 54, 60 } |
| 14 |
|
| 15 |
Remove |
| 16 |
|
| 17 |
Create Sound from formula: "silence", 1, 0.0, 0.1, 44100, ~ 0.0 |
| 18 |
asserterror The command "Draw:" does not return anything; not assigned to the numeric variable "a". |
| 19 |
a = Draw: 0.0, 0.0, 0.0, 0.0, "yes", "curve" |
| 20 |
|
| 21 |
selectObject: "Sound silence" |
| 22 |
a = Get value at time: 1, 0.05, "nearest" |
| 23 |
assert a = 0.0 ; 'a' |
| 24 |
|
| 25 |
selectObject: "Sound silence" |
| 26 |
a$ = Get value at time: 1, 0.05, "nearest" |
| 27 |
writeInfo: a$ |
| 28 |
assert a$ = "0 Pascal" ; 'a$' |
| 29 |
|
| 30 |
selectObject: "Sound silence" |
| 31 |
asserterror The command "Get value at time:" returns a number or a string; not assigned to the vector variable "a#". |
| 32 |
a# = Get value at time: 1, 0.05, "nearest" |
| 33 |
|
| 34 |
selectObject: "Sound silence" |
| 35 |
asserterror The command "Get value at time:" returns a number or a string; not assigned to the matrix variable "a##". |
| 36 |
a## = Get value at time: 1, 0.05, "nearest" |
| 37 |
|
| 38 |
selectObject: "Sound silence" |
| 39 |
asserterror The command "Get value at time:" returns a number or a string; not assigned to the string array variable "a$#". |
| 40 |
a$# = Get value at time: 1, 0.05, "nearest" |
| 41 |
|
| 42 |
removeObject: "Sound silence" |
| 43 |
|
| 44 |
# |
| 45 |
# The following two tests are repeated from our first two tests, |
| 46 |
# to check that the return type is reset to void by "Draw inner box" and "Draw...". |
| 47 |
# |
| 48 |
sound = Create Sound from formula: "silence2", 1, 0.0, 0.1, 44100, ~ 0.0 ; this sets the return type to OBJECT_ |
| 49 |
asserterror The command "Draw inner box" does not return anything; not assigned to the numeric variable "a". |
| 50 |
a = Draw inner box |
| 51 |
Remove |
| 52 |
; |
| 53 |
sound = Create Sound from formula: "silence2", 1, 0.0, 0.1, 44100, ~ 0.0 ; this sets the return type to OBJECT_ |
| 54 |
asserterror The command "Draw:" does not return anything; not assigned to the numeric variable "a". |
| 55 |
a = Draw: 0.0, 0.0, 0.0, 0.0, "yes", "curve" |
| 56 |
Remove |
| 57 |
|
| 58 |
# |
| 59 |
# Check clearing the return type to non-vector after setting it to vector. |
| 60 |
# |
| 61 |
sound = Create Sound from formula: "dummy", 1, 0.0, 0.1, 44100, ~ 0.0 ; this sets the return type to OBJECT_ |
| 62 |
times# = List all sample times |
| 63 |
asserterror The command "Draw inner box" does not return anything; not assigned to the vector variable "a#". |
| 64 |
a# = Draw inner box |
| 65 |
Remove |
| 66 |
|
| 67 |
strings1 = Create Strings from tokens: "tokens1", "there are seven tokens in this text", " " |
| 68 |
strings2 = Copy: "tokens2" |
| 69 |
selectObject: strings1, strings2 |
| 70 |
equal = Equal? |
| 71 |
Remove |