source: git/Tst/Manual/sprintf.tst @ 0d6b7fc

spielwiese Release-4-3-2p2
Last change on this file since 0d6b7fc was 894057, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
  • Property mode set to 100644
File size: 368 bytes
Line 
1LIB "tst.lib"; tst_init();
2  ring r=0,(x,y,z),dp;
3module m=[1,y],[0,x+z];
4intmat M=betti(mres(m,0));
5list l = r, m, M;
6string s = sprintf("s:%s,%n l:%l", 1, 2); s;
7s = sprintf("s:%n%s", l); s;
8s = sprintf("s:%2%s", list(l)); s;
9s = sprintf("2l:%n%2l", list(l)); s;
10s = sprintf("%p", list(l)); s;
11s = sprintf("%;", list(l)); s;
12s = sprintf("%b", M); s;
13tst_status(1);$
Note: See TracBrowser for help on using the repository browser.