| 1 | REBOL [] |
|---|
| 2 | |
|---|
| 3 | ; numbers with tuples |
|---|
| 4 | a: 1.2.3 |
|---|
| 5 | b: 253 |
|---|
| 6 | print ["OR11: add tuple pos-integer" a + b b + a] |
|---|
| 7 | print ["OR12: sub tuple pos-integer" a - b b - a] |
|---|
| 8 | print ["OR13: mul tuple pos-integer" a * b b * a] |
|---|
| 9 | print ["OR14: div tuple pos-integer" a / b b / a] |
|---|
| 10 | print ["OR15: and tuple pos-integer" a and b b and a] |
|---|
| 11 | print ["OR16: or tuple pos-integer" a or b b or a] |
|---|
| 12 | print ["OR17: xor tuple pos-integer" a xor b b xor a] |
|---|
| 13 | |
|---|
| 14 | b: -253 |
|---|
| 15 | print ["OR21: add tuple neg-integer" a + b b + a] |
|---|
| 16 | print ["OR22: sub tuple neg-integer" a - b b - a] |
|---|
| 17 | print ["OR23: mul tuple neg-integer" a * b b * a] |
|---|
| 18 | print ["OR24: div tuple neg-integer" a / b b / a] |
|---|
| 19 | print ["OR25: and tuple neg-integer" a and b b and a] |
|---|
| 20 | print ["OR26: or tuple neg-integer" a or b b or a] |
|---|
| 21 | print ["OR27: xor tuple neg-integer" a xor b b xor a] |
|---|
| 22 | |
|---|
| 23 | b: 501.12345 |
|---|
| 24 | print ["OR31: add tuple pos_decimal" a + b b + a] |
|---|
| 25 | print ["OR32: sub tuple pos_decimal" a - b b - a] |
|---|
| 26 | print ["OR33: mul tuple pos_decimal" a * b b * a] |
|---|
| 27 | print ["OR34: div tuple pos_decimal" a / b b / a] |
|---|
| 28 | print ["OR35: and tuple pos_decimal" a and b b and a] |
|---|
| 29 | print ["OR36: or tuple pos_decimal" a or b b or a] |
|---|
| 30 | print ["OR37: xor tuple pos_decimal" a xor b b xor a] |
|---|
| 31 | |
|---|
| 32 | b: -501.12345 |
|---|
| 33 | print ["OR41: add tuple neg_decimal" a + b b + a] |
|---|
| 34 | print ["OR42: sub tuple neg_decimal" a - b b - a] |
|---|
| 35 | print ["OR43: mul tuple neg_decimal" a * b b * a] |
|---|
| 36 | print ["OR44: div tuple neg_decimal" a / b b / a] |
|---|
| 37 | print ["OR45: and tuple neg_decimal" a and b b and a] |
|---|
| 38 | print ["OR46: or tuple neg_decimal" a or b b or a] |
|---|
| 39 | print ["OR47: xor tuple neg_decimal" a xor b b xor a] |
|---|
| 40 | |
|---|
| 41 | ; tuples with tuples |
|---|
| 42 | b: 0.0.0 |
|---|
| 43 | print ["low bound"] |
|---|
| 44 | print ["OR51: add tuple tuple" a + b b + a] |
|---|
| 45 | print ["OR52: sub tuple tuple" a - b b - a] |
|---|
| 46 | print ["OR53: mul tuple tuple" a * b b * a] |
|---|
| 47 | print ["OR54: div tuple tuple" b / a] ;; div by zero |
|---|
| 48 | print ["OR55: and tuple tuple" a and b b and a] |
|---|
| 49 | print ["OR56: or tuple tuple" a or b b or a] |
|---|
| 50 | print ["OR57: xor tuple tuple" a xor b b xor a] |
|---|
| 51 | |
|---|
| 52 | b: 255.255.255 |
|---|
| 53 | print ["high bound"] |
|---|
| 54 | print ["OR61: add tuple tuple" a + b b + a] |
|---|
| 55 | print ["OR62: sub tuple tuple" a - b b - a] |
|---|
| 56 | print ["OR63: mul tuple tuple" a * b b * a] |
|---|
| 57 | print ["OR64: div tuple tuple" a / b b / a] |
|---|
| 58 | print ["OR65: and tuple tuple" a and b b and a] |
|---|
| 59 | print ["OR66: or tuple tuple" a or b b or a] |
|---|
| 60 | print ["OR67: xor tuple tuple" a xor b b xor a] |
|---|
| 61 | |
|---|
| 62 | b: 127.127.127 |
|---|
| 63 | print ["between"] |
|---|
| 64 | print ["OR71: add tuple tuple" a + b b + a] |
|---|
| 65 | print ["OR72: sub tuple tuple" a - b b - a] |
|---|
| 66 | print ["OR73: mul tuple tuple" a * b b * a] |
|---|
| 67 | print ["OR74: div tuple tuple" a / b b / a] |
|---|
| 68 | print ["OR75: and tuple tuple" a and b b and a] |
|---|
| 69 | print ["OR76: or tuple tuple" a or b b or a] |
|---|
| 70 | print ["OR77: xor tuple tuple" a xor b b xor a] |
|---|
| 71 | |
|---|
| 72 | b: 127.127.127.127 |
|---|
| 73 | print ["different len"] |
|---|
| 74 | print ["OR81: add tuple tuple" a + b b + a] |
|---|
| 75 | print ["OR82: sub tuple tuple" a - b b - a] |
|---|
| 76 | print ["OR83: mul tuple tuple" a * b b * a] |
|---|
| 77 | print ["OR84: div tuple tuple" a / b] ;; div by zero |
|---|
| 78 | print ["OR85: and tuple tuple" a and b b and a] |
|---|
| 79 | print ["OR86: or tuple tuple" a or b b or a] |
|---|
| 80 | print ["OR87: xor tuple tuple" a xor b b xor a] |
|---|
| 81 | |
|---|