• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2006 Douglas Gregor <doug.gregor -at- gmail.com>.
2
3# Use, modification and distribution is subject to the Boost Software
4# License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5# http://www.boost.org/LICENSE_1_0.txt)
6
7# Value generators used in the Boost.MPI Python regression tests
8def int_generator(p):
9    return 17 + p
10
11def gps_generator(p):
12    return (39 + p, 16, 20.2799)
13
14def string_generator(p):
15    result = "%d rosebud" % p;
16    if p != 1: result = result + 's'
17    return result
18
19def string_list_generator(p):
20    result = list()
21    for i in range(0,p):
22        result.append(str(i))
23    return result
24