source: git/Tst/Manual/pyobject_operations.tst @ 6fb723

spielwiese
Last change on this file since 6fb723 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: 559 bytes
Line 
1LIB "tst.lib"; tst_init();
2pyobject two = 2;
3pyobject three = 3;
4
5two + three;
6two - three;
7two * three;
8two / three;
9two ^ three;
10two ** three;
11
12three < two;
13two < three;
14three <= two;
15two <= three;
16two == three;
17two == two;
18three > two;
19two > three;
20three >= two;
21two >= three;
22two != two;
23two != three;
24
25pyobject pystr = "Hello";
26pystr + " World!";
27pystr * 3;
28pystr[1];
29
30python_run("def newfunc(*args): return list(args)");
31newfunc();
32newfunc(two, three);
33
34newfunc."__class__";
35newfunc::"__class__";
36newfunc.func_name;
37newfunc::func_name;
38
39tst_status(1);$
Note: See TracBrowser for help on using the repository browser.