source: git/Tst/Manual/Return_type_of_procedures.tst @ 76ce4e6

fieker-DuValspielwiese
Last change on this file since 76ce4e6 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: 201 bytes
Line 
1LIB "tst.lib"; tst_init();
2proc type_return (int i)
3{
4  if (i > 0) {return (i);}
5  else {return (list(i));}
6}
7def t1 = type_return(1);
8def t2 = type_return(-1);
9typeof(t1); typeof(t2);
10tst_status(1);$
Note: See TracBrowser for help on using the repository browser.