def test_fannkuch(self):
    results = [(1, 0), (2, 1), (3, 2), (4, 4), (5, 7), (6, 10), (7, 16), (8, 22)]
    src = open(path_from_root('tests', 'fannkuch.cpp')).read()
    self.build(src, self.get_dir(), 'fannkuch.cpp')
    for (i, j) in results:
        print(i, j)
        self.do_run('fannkuch.cpp.o.js', ('Pfannkuchen(%d) = %d.' % (i, j)), [str(i)], no_build=True)
def test_fannkuch(self):
    results = [(1, 0), (2, 1), (3, 2), (4, 4), (5, 7), (6, 10), (7, 16), (8, 22)]
    src = open(path_from_root('tests', 'fannkuch.cpp')).read()
    self.build(src, self.get_dir(), 'fannkuch.cpp')
    for (i, j) in results:
        print(i, j)
        self.do_run('fannkuch.cpp.o.js', ('Pfannkuchen(%d) = %d.' % (i, j)), [str(i)], no_build=True)