| 1 |
(******************************************************************************* |
|---|
| 2 |
Copyright 2008 Sun Microsystems, Inc., |
|---|
| 3 |
4150 Network Circle, Santa Clara, California 95054, U.S.A. |
|---|
| 4 |
All rights reserved. |
|---|
| 5 |
|
|---|
| 6 |
U.S. Government Rights - Commercial software. |
|---|
| 7 |
Government users are subject to the Sun Microsystems, Inc. standard |
|---|
| 8 |
license agreement and applicable provisions of the FAR and its supplements. |
|---|
| 9 |
|
|---|
| 10 |
Use is subject to license terms. |
|---|
| 11 |
|
|---|
| 12 |
This distribution may include materials developed by third parties. |
|---|
| 13 |
|
|---|
| 14 |
Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered |
|---|
| 15 |
trademarks of Sun Microsystems, Inc. in the U.S. and other countries. |
|---|
| 16 |
******************************************************************************) |
|---|
| 17 |
component array3test |
|---|
| 18 |
export Executable |
|---|
| 19 |
|
|---|
| 20 |
run(args:String...) :() = do |
|---|
| 21 |
c :ZZ32[3,4,2] = [ 1 2 3 4 |
|---|
| 22 |
5 6 7 8 |
|---|
| 23 |
9 10 11 12;; 13 14 15 16 |
|---|
| 24 |
17 18 19 20 |
|---|
| 25 |
21 22 23 24 ] |
|---|
| 26 |
cstr = c.toString() |
|---|
| 27 |
assert(c.bounds, (0,0,0)#(3,4,2), "Bounds of c wrong") |
|---|
| 28 |
cexpect = "[0#3,0#4,0#2]\n[ 1 2 3 4\n 5 6 7 8\n 9 10 11 12 ;;\n 13 14 15 16\n 17 18 19 20\n 21 22 23 24 ]" |
|---|
| 29 |
assert(cstr,cexpect,"toString() of Array3") |
|---|
| 30 |
assert(c,c,"equality on Array3") |
|---|
| 31 |
end |
|---|
| 32 |
|
|---|
| 33 |
end |
|---|