home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / tests / general / recent.std < prev    next >
Text File  |  2001-05-02  |  9KB  |  444 lines

  1.  
  2. sort(L):
  3.   integer  3
  4.   integer  4
  5.   list     1 2 3 4 5 95 96 97 98 99 100 
  6.   list     1 5 9 
  7.   list     5 &null 5 
  8.   list     4 4 4 4 
  9.   list     3 3 3 
  10.   list     &null 25 
  11.   list     2 2 
  12.   list     1 
  13.   list     &null &null 
  14.   list     
  15.   r1       2 
  16.   r1       4 
  17.   r1       8 
  18.   r3       3 1 4 
  19.   r3       2 6 5 
  20.   r3       3 5 &null 
  21.   r3       7 8 9 
  22.  
  23. -------------------- testing n = &null
  24.  
  25. sortf(L,n):
  26.   integer  3
  27.   integer  4
  28.   list     
  29.   list     &null 25 
  30.   list     &null &null 
  31.   list     1 2 3 4 5 95 96 97 98 99 100 
  32.   list     1 5 9 
  33.   list     1 
  34.   list     2 2 
  35.   list     3 3 3 
  36.   list     4 4 4 4 
  37.   list     5 &null 5 
  38.   r1       2 
  39.   r3       2 6 5 
  40.   r3       3 1 4 
  41.   r3       3 5 &null 
  42.   r1       4 
  43.   r3       7 8 9 
  44.   r1       8 
  45.  
  46. sortf(S,n) [same]
  47.  
  48. -------------------- testing n = 1
  49.  
  50. sortf(L,n):
  51.   integer  3
  52.   integer  4
  53.   list     
  54.   list     &null 25 
  55.   list     &null &null 
  56.   list     1 2 3 4 5 95 96 97 98 99 100 
  57.   list     1 5 9 
  58.   list     1 
  59.   list     2 2 
  60.   list     3 3 3 
  61.   list     4 4 4 4 
  62.   list     5 &null 5 
  63.   r1       2 
  64.   r3       2 6 5 
  65.   r3       3 1 4 
  66.   r3       3 5 &null 
  67.   r1       4 
  68.   r3       7 8 9 
  69.   r1       8 
  70.  
  71. sortf(S,n) [same]
  72.  
  73. -------------------- testing n = 2
  74.  
  75. sortf(L,n):
  76.   integer  3
  77.   integer  4
  78.   list     1 
  79.   list     
  80.   list     5 &null 5 
  81.   list     &null &null 
  82.   list     1 2 3 4 5 95 96 97 98 99 100 
  83.   list     2 2 
  84.   list     3 3 3 
  85.   list     4 4 4 4 
  86.   list     1 5 9 
  87.   list     &null 25 
  88.   r1       2 
  89.   r1       4 
  90.   r1       8 
  91.   r3       3 1 4 
  92.   r3       3 5 &null 
  93.   r3       2 6 5 
  94.   r3       7 8 9 
  95.  
  96. sortf(S,n) [same]
  97.  
  98. -------------------- testing n = 3
  99.  
  100. sortf(L,n):
  101.   integer  3
  102.   integer  4
  103.   list     &null 25 
  104.   list     2 2 
  105.   list     1 
  106.   list     &null &null 
  107.   list     
  108.   list     1 2 3 4 5 95 96 97 98 99 100 
  109.   list     3 3 3 
  110.   list     4 4 4 4 
  111.   list     5 &null 5 
  112.   list     1 5 9 
  113.   r1       2 
  114.   r1       4 
  115.   r1       8 
  116.   r3       3 5 &null 
  117.   r3       3 1 4 
  118.   r3       2 6 5 
  119.   r3       7 8 9 
  120.  
  121. sortf(S,n) [same]
  122.  
  123. -------------------- testing n = 4
  124.  
  125. sortf(L,n):
  126.   integer  3
  127.   integer  4
  128.   list     1 5 9 
  129.   list     5 &null 5 
  130.   list     3 3 3 
  131.   list     &null 25 
  132.   list     2 2 
  133.   list     1 
  134.   list     &null &null 
  135.   list     
  136.   list     1 2 3 4 5 95 96 97 98 99 100 
  137.   list     4 4 4 4 
  138.   r1       2 
  139.   r1       4 
  140.   r1       8 
  141.   r3       3 1 4 
  142.   r3       2 6 5 
  143.   r3       3 5 &null 
  144.   r3       7 8 9 
  145.  
  146. sortf(S,n) [same]
  147.  
  148. -------------------- testing n = 17
  149.  
  150. sortf(L,n):
  151.   integer  3
  152.   integer  4
  153.   list     1 5 9 
  154.   list     5 &null 5 
  155.   list     4 4 4 4 
  156.   list     3 3 3 
  157.   list     &null 25 
  158.   list     2 2 
  159.   list     1 
  160.   list     &null &null 
  161.   list     
  162.   list     1 2 3 4 5 95 96 97 98 99 100 
  163.   r1       2 
  164.   r1       4 
  165.   r1       8 
  166.   r3       3 1 4 
  167.   r3       2 6 5 
  168.   r3       3 5 &null 
  169.   r3       7 8 9 
  170.  
  171. sortf(S,n) [same]
  172.  
  173. -------------------- testing n = -4
  174.  
  175. sortf(L,n):
  176.   integer  3
  177.   integer  4
  178.   list     1 5 9 
  179.   list     5 &null 5 
  180.   list     3 3 3 
  181.   list     &null 25 
  182.   list     2 2 
  183.   list     1 
  184.   list     &null &null 
  185.   list     
  186.   list     4 4 4 4 
  187.   list     1 2 3 4 5 95 96 97 98 99 100 
  188.   r1       2 
  189.   r1       4 
  190.   r1       8 
  191.   r3       3 1 4 
  192.   r3       2 6 5 
  193.   r3       3 5 &null 
  194.   r3       7 8 9 
  195.  
  196. sortf(S,n) [same]
  197.  
  198. -------------------- testing n = -3
  199.  
  200. sortf(L,n):
  201.   integer  3
  202.   integer  4
  203.   list     &null 25 
  204.   list     2 2 
  205.   list     1 
  206.   list     &null &null 
  207.   list     
  208.   list     1 5 9 
  209.   list     3 3 3 
  210.   list     4 4 4 4 
  211.   list     5 &null 5 
  212.   list     1 2 3 4 5 95 96 97 98 99 100 
  213.   r1       2 
  214.   r1       4 
  215.   r1       8 
  216.   r3       2 6 5 
  217.   r3       3 1 4 
  218.   r3       3 5 &null 
  219.   r3       7 8 9 
  220.  
  221. sortf(S,n) [same]
  222.  
  223. -------------------- testing n = -2
  224.  
  225. sortf(L,n):
  226.   integer  3
  227.   integer  4
  228.   list     1 
  229.   list     
  230.   list     5 &null 5 
  231.   list     &null 25 
  232.   list     &null &null 
  233.   list     2 2 
  234.   list     3 3 3 
  235.   list     4 4 4 4 
  236.   list     1 5 9 
  237.   list     1 2 3 4 5 95 96 97 98 99 100 
  238.   r1       2 
  239.   r1       4 
  240.   r1       8 
  241.   r3       3 1 4 
  242.   r3       3 5 &null 
  243.   r3       2 6 5 
  244.   r3       7 8 9 
  245.  
  246. sortf(S,n) [same]
  247.  
  248. -------------------- testing n = -1
  249.  
  250. sortf(L,n):
  251.   integer  3
  252.   integer  4
  253.   list     
  254.   list     &null &null 
  255.   list     1 
  256.   list     2 2 
  257.   list     3 3 3 
  258.   list     4 4 4 4 
  259.   list     5 &null 5 
  260.   list     1 5 9 
  261.   list     &null 25 
  262.   list     1 2 3 4 5 95 96 97 98 99 100 
  263.   r3       3 5 &null 
  264.   r1       2 
  265.   r1       4 
  266.   r3       3 1 4 
  267.   r3       2 6 5 
  268.   r1       8 
  269.   r3       7 8 9 
  270.  
  271. sortf(S,n) [same]
  272. 0
  273. -1
  274.     i        j       ~j      i & j    i | j    i ^ j   i << j   i >> j
  275.        1        0
  276. 00000001 00000000 FFFFFFFF 00000000 00000001 00000001 00000001 00000001 
  277.        1        1
  278. 00000001 00000001 FFFFFFFE 00000001 00000001 00000000 00000002 00000000 
  279.        1        2
  280. 00000001 00000002 FFFFFFFD 00000000 00000003 00000003 00000004 00000000 
  281.        1        3
  282. 00000001 00000003 FFFFFFFC 00000001 00000003 00000002 00000008 00000000 
  283.        1        4
  284. 00000001 00000004 FFFFFFFB 00000000 00000005 00000005 00000010 00000000 
  285.        1      100
  286. 00000001 00000064 FFFFFF9B 00000000 00000065 00000065 00000000 00000000 
  287.     i        j       ~j      i & j    i | j    i ^ j   i << j   i >> j
  288.        2        0
  289. 00000002 00000000 FFFFFFFF 00000000 00000002 00000002 00000002 00000002 
  290.        2        1
  291. 00000002 00000001 FFFFFFFE 00000000 00000003 00000003 00000004 00000001 
  292.        2        2
  293. 00000002 00000002 FFFFFFFD 00000002 00000002 00000000 00000008 00000000 
  294.        2        3
  295. 00000002 00000003 FFFFFFFC 00000002 00000003 00000001 00000010 00000000 
  296.        2        4
  297. 00000002 00000004 FFFFFFFB 00000000 00000006 00000006 00000020 00000000 
  298.        2      100
  299. 00000002 00000064 FFFFFF9B 00000000 00000066 00000066 00000000 00000000 
  300.     i        j       ~j      i & j    i | j    i ^ j   i << j   i >> j
  301.        3        0
  302. 00000003 00000000 FFFFFFFF 00000000 00000003 00000003 00000003 00000003 
  303.        3        1
  304. 00000003 00000001 FFFFFFFE 00000001 00000003 00000002 00000006 00000001 
  305.        3        2
  306. 00000003 00000002 FFFFFFFD 00000002 00000003 00000001 0000000C 00000000 
  307.        3        3
  308. 00000003 00000003 FFFFFFFC 00000003 00000003 00000000 00000018 00000000 
  309.        3        4
  310. 00000003 00000004 FFFFFFFB 00000000 00000007 00000007 00000030 00000000 
  311.        3      100
  312. 00000003 00000064 FFFFFF9B 00000000 00000067 00000067 00000000 00000000 
  313. file(concord.dat)
  314. 11
  315. "eoptera, ("
  316. 21
  317. 21
  318. 1212
  319. "."
  320. 1213
  321. oops -- function char(-65536) 
  322. oops -- function char(-337) 
  323. oops -- function char(-1) 
  324. oops -- function char(256) 
  325. oops -- function char(4713) 
  326. oops -- function char(65536) 
  327. oops -- function char(123456) 
  328. oops -- function char("abc") 
  329. oops -- function char(&lcase) 
  330. oops -- function char(&errout) 
  331. oops -- function char(list_34(0)) 
  332. oops -- function ord("") 
  333. oops -- function ord("ab") 
  334. oops -- function ord("antidisestablishmentarianism") 
  335. oops -- function ord(47) 
  336. oops -- function ord(&output) 
  337. oops -- function ord(table_1(0)) 
  338. getenv $HOME succeeded
  339. getenv $FOOBAR failed
  340. found file: .
  341. found file: ..
  342. found file: Makefile
  343. found file: recent.icn
  344. found file: recogn.dat
  345. &ascii
  346. &cset
  347. &digits
  348. '123456789'
  349. &letters
  350. &letters
  351. &lcase
  352. list_36(1)
  353. list_37(2)
  354. list_38(3)
  355. list_39(4)
  356. list_40(0)
  357. p(1):
  358.    image(a):1
  359.    image(b):&null
  360.    image(c):list_43(0)
  361.    every write("\t", !c):
  362. p(1, 2):
  363.    image(a):1
  364.    image(b):2
  365.    image(c):list_44(0)
  366.    every write("\t", !c):
  367. p(1, 2, 3):
  368.    image(a):1
  369.    image(b):2
  370.    image(c):list_45(1)
  371.    every write("\t", !c):
  372.     3
  373. p(1, 2, 3, 4, 5):
  374.    image(a):1
  375.    image(b):2
  376.    image(c):list_46(3)
  377.    every write("\t", !c):
  378.     3
  379.     4
  380.     5
  381. q(1, 2):
  382.    every write("\t", !a):
  383.     1
  384.     2
  385. t := table("default") --> table_2(0)
  386.    *t --> 0
  387.    t["xyz"] --> "default"
  388.    member(t, "xyz") --> failure
  389.    contents of t:
  390.  
  391. insert(t, 3, 4) --> table_2(1)
  392. insert(t, "xyz", "abc") --> table_2(2)
  393. insert(t, &digits) --> table_2(3)
  394.    *t --> 3
  395.    t["xyz"] --> "abc"
  396.    member(t, "xyz") --> "xyz"
  397.    contents of t:
  398.     3 : 4
  399.     "xyz" : "abc"
  400.     &digits : &null
  401.  
  402. t["xyz"] := "new value" --> "new value"
  403.    *t --> 3
  404.    t["xyz"] --> "new value"
  405.    member(t, "xyz") --> "xyz"
  406.    contents of t:
  407.     3 : 4
  408.     "xyz" : "new value"
  409.     &digits : &null
  410.  
  411. insert(t, "xyz", "def") --> table_2(3)
  412.    *t --> 3
  413.    t["xyz"] --> "def"
  414.    member(t, "xyz") --> "xyz"
  415.    contents of t:
  416.     3 : 4
  417.     "xyz" : "def"
  418.     &digits : &null
  419.  
  420. delete(t, "xyz") -- > table_2(2)
  421.    *t --> 2
  422.    t["xyz"] --> "default"
  423.    member(t, "xyz") --> failure
  424.    contents of t:
  425.     3 : 4
  426.     &digits : &null
  427.  
  428. delete(t, "xyz") -- > table_2(2)
  429.    *t --> 2
  430.    t["xyz"] --> "default"
  431.    member(t, "xyz") --> failure
  432.    contents of t:
  433.     3 : 4
  434.     &digits : &null
  435.  
  436. t := table("default") --> table_3(0)
  437. t["one"] := 1 --> 1
  438. t[] --> "default"
  439. x := r1([t, [1, [2, 3]]]) --> record r1_4(1)
  440. x[1, 1, "one"] --> 1
  441. x[1, 2, 2, 2] --> 3
  442. x[1, 2] := ["abcd", "defg"] --> list_57(2)
  443. x[1, 2, 2, 2] --> "e"
  444.