Last change
on this file since 45 was
29,
checked in by landauf, 17 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
851 bytes
|
Line | |
---|
1 | # Copyright Bruno da Silva de Oliveira 2003. Use, modification and |
---|
2 | # distribution is subject to the Boost Software License, Version 1.0. |
---|
3 | # (See accompanying file LICENSE_1_0.txt or copy at |
---|
4 | # http:#www.boost.org/LICENSE_1_0.txt) |
---|
5 | import unittest |
---|
6 | from _templates import * |
---|
7 | |
---|
8 | class TemplatesTest(unittest.TestCase): |
---|
9 | |
---|
10 | def testIt(self): |
---|
11 | fp = FPoint() |
---|
12 | fp.i = 3.0 |
---|
13 | fp.j = 4.0 |
---|
14 | ip = IPoint() |
---|
15 | ip.x = 10 |
---|
16 | ip.y = 3 |
---|
17 | |
---|
18 | self.assertEqual(fp.i, 3.0) |
---|
19 | self.assertEqual(fp.j, 4.0) |
---|
20 | self.assertEqual(ip.x, 10) |
---|
21 | self.assertEqual(ip.y, 3) |
---|
22 | self.assertEqual(type(fp.i), float) |
---|
23 | self.assertEqual(type(fp.j), float) |
---|
24 | self.assertEqual(type(ip.x), int) |
---|
25 | self.assertEqual(type(ip.y), int) |
---|
26 | |
---|
27 | |
---|
28 | |
---|
29 | if __name__ == '__main__': |
---|
30 | unittest.main() |
---|
Note: See
TracBrowser
for help on using the repository browser.