testing_primitives.py
来自「Boost provides free peer-reviewed portab」· Python 代码 · 共 31 行
PY
31 行
#!/usr/bin/python# Copyright 2002 Dave Abrahams # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) import BoostBuildimport redef match_re(actual, expected): return re.match(expected, actual, re.DOTALL) != Nonet = BoostBuild.Tester(match=match_re)t.set_tree('testing-primitives')# We expect t5 and t7's output to be dumped to stdout.t.run_build_system(stdout=r'''.*failing t5.*failing t7''')t.expect_addition('t2.txt')t.expect_addition('t3.txt')t.expect_addition('t5.out')t.expect_addition('t6.out')t.expect_addition('t6.txt')t.expect_addition('t7.out')t.expect_addition('t7.txt')t.expect_addition('t8.out')t.expect_nothing_more()t.cleanup()
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?