Changeset 458bd6 in git for Tst/Short/string.tst
- Timestamp:
- Apr 17, 1999, 2:01:18 PM (25 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- b45d9738be1be20b4a90b80e61feae602bc1558d
- Parents:
- 0df02761ea5104747ff923eee578ddb4d27f4a45
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Tst/Short/string.tst
r0df027 r458bd6 2 2 tst_init(); 3 3 4 list l = 1, 2; string(l); 4 5 proc MyPrint(def what) 6 { 7 "what"; 8 what; 9 "print(what)"; 10 print(what); 11 "string(what)"; 12 string(what); 13 "print(what, \"%s\")"; 14 print(what, "%s"); 15 "print(what, \"%p\")"; 16 print(what, "%p"); 17 "print(what, \"%t\")"; 18 print(what, "%t"); 19 "print(what, \"%;\")"; 20 print(what, "%;"); 21 } 22 23 list l = 1, 2; 24 MyPrint(l); 25 l; 26 5 27 list ll; 6 string(ll); 7 l = l = ll; 8 l; 28 MyPrint(ll); 29 30 l = l + ll; 31 MyPrint(l); 32 9 33 l = insert(l, ll); 10 l; 34 MyPrint(l); 35 36 l[10] = 5; 37 11 38 string(l); 12 l; 13 l[10] = 5; 14 string(l); 39 MyPrint(l); 40 15 41 l[3] = intvec(1,2,3); 16 42 l[4] = "hi"; 17 string(l);18 l; 43 MyPrint(l); 44 19 45 l[6] = list("ho", "he"); 20 string(l);21 proc hi {1;}; 22 l[8] = hi;23 l;24 string(l); 46 MyPrint(l); 47 48 l[8] = MyPrint; 49 MyPrint(l); 50 25 51 link li = "/tmp"; 26 li; 27 l[7] = li; 28 l; 29 string(l); 52 l[8] = li; 53 MyPrint(l); 54 30 55 ring r; 56 MyPrint(r); 57 31 58 ideal i; 32 string(i);33 string(r); 59 MyPrint(i); 60 34 61 l[8] = r; 35 62 l[9] = i; 36 l; 63 MyPrint(l); 64 65 matrix ma[2][2] = x,y,z,x2; 66 MyPrint(ma); 67 68 module m=[1,y],[0,x+z]; 69 MyPrint(m); 70 71 l[1]= list(ma, m); 72 MyPrint(l); 73 74 intmat M=betti(mres(m,0)); 75 MyPrint(M); 76 print(M,"betti"); 77 print(M, "%b"); 78 l[2] = M; 79 MyPrint(l); 80 37 81 ideal j = z2,x; 38 82 resolution re = res(j,0); 39 re; 40 string(re); 83 MyPrint(re); 41 84 l[11] = re; 42 l; 43 string(l); 44 string(l, l); 85 MyPrint(re); 86 87 matrix B(1..3); 88 B(1)[1,1] = 1; 89 B(2)[1,1] = 2; 90 B(3)[1,1] = 3; 91 92 B(1..3); 93 print(B(1..3)); 94 string(B(1..3)); 95 45 96 qring qr = std(ideal(x,y)); 46 string(qr); 47 l[12] = qr; 48 l; 49 string(l); 97 MyPrint(qr); 98 50 99 list l = 1, qr, list(2, qr); 51 l; 52 string(l); 100 MyPrint(l); 101 102 53 103 tst_status(1);$ 104
Note: See TracChangeset
for help on using the changeset viewer.