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:
541 bytes
|
Line | |
---|
1 | # Copyright David Abrahams 2006. Distributed under the Boost |
---|
2 | # Software License, Version 1.0. (See accompanying |
---|
3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
---|
4 | class _printer(object): |
---|
5 | def __init__(self): |
---|
6 | self.results = []; |
---|
7 | def __call__(self, *stuff): |
---|
8 | for x in stuff: |
---|
9 | self.results.append(str(x)) |
---|
10 | def check(self, x): |
---|
11 | if self.results[0] != str(x): |
---|
12 | print ' Expected:\n %s\n but the C++ interface gave:\n %s' % (x, self.results[0]) |
---|
13 | del self.results[0] |
---|
Note: See
TracBrowser
for help on using the repository browser.