Home
last modified time | relevance | path

Searched refs:xrange (Results 1 – 25 of 67) sorted by relevance

123

/third_party/boost/libs/test/test/test-organization-ts/datasets-test/
Dxrange-test.cpp28 BOOST_TEST( data::xrange( 5 ).size() == 5 ); in BOOST_AUTO_TEST_CASE()
29 BOOST_TEST( data::xrange( 3. ).size() == 3 ); in BOOST_AUTO_TEST_CASE()
30 BOOST_CHECK_THROW( data::xrange( -5 ), std::logic_error ); in BOOST_AUTO_TEST_CASE()
31 BOOST_CHECK_THROW( data::xrange( 0 ), std::logic_error ); in BOOST_AUTO_TEST_CASE()
33 BOOST_TEST( data::xrange( 1, 5 ).size() == 4 ); in BOOST_AUTO_TEST_CASE()
34 BOOST_TEST( data::xrange( -5, 0 ).size() == 5 ); in BOOST_AUTO_TEST_CASE()
35 BOOST_TEST( data::xrange( 1., 7.5 ).size() == 7 ); in BOOST_AUTO_TEST_CASE()
36 BOOST_CHECK_THROW( data::xrange( 0, 0 ), std::logic_error ); in BOOST_AUTO_TEST_CASE()
37 BOOST_CHECK_THROW( data::xrange( 3, 1 ), std::logic_error ); in BOOST_AUTO_TEST_CASE()
39 BOOST_TEST( data::xrange( 3, 9, 2 ).size() == 3 ); in BOOST_AUTO_TEST_CASE()
[all …]
Dmono-grid-test.cpp43 auto ds2 = data::xrange(5); in BOOST_AUTO_TEST_CASE()
181 …BOOST_TEST( (data::xrange(2) * data::xrange(2) * data::xrange(2) * data::xrange(2)).size() == (1 <… in BOOST_AUTO_TEST_CASE()
/third_party/python/Tools/iobench/
Diobench.py19 xrange
21 xrange = range variable
106 for i in xrange(0, size - 1):
116 for i in xrange(0, size - 1, 1000):
140 for i in xrange(0, len(source)):
147 for i in xrange(0, len(source), 20):
154 for i in xrange(0, len(source), 4096):
161 for i in xrange(0, len(source), 1000000):
170 for i in xrange(0, len(source)):
178 for i in xrange(0, len(source), 20):
[all …]
/third_party/boost/libs/test/doc/examples/
Ddataset_example64.run-fail.cpp19 bdata::xrange(2) * bdata::xrange(3),
28 bdata::xrange(3)
32 ^ bdata::xrange(2)
Ddataset_example59.run-fail.cpp16 BOOST_DATA_TEST_CASE( test1, bdata::xrange(5) )
24 bdata::xrange<int>( (bdata::begin=1, bdata::end=10, bdata::step=3)) ) in BOOST_DATA_TEST_CASE()
Ddataset_example63.run-fail.cpp19 bdata::random(1, 17) ^ bdata::xrange(7),
30 ^ bdata::xrange(7),
Dexample49.run.cpp14 BOOST_DATA_TEST_CASE( free_test_function, boost::unit_test::data::xrange(1000) )
Ddecorator_00.run.cpp17 BOOST_DATA_TEST_CASE(test_1, data::xrange(4))
Ddataset_example66.run.cpp20 bdata::xrange(2) ^ bdata::make(arr),
Ddataset_example65.run.cpp30 bdata::xrange(3) ^ bdata::make(2),
/third_party/boost/libs/test/doc/snippet/dataset_1/
Dtest_file.cpp25 BOOST_DATA_TEST_CASE( test_case_arity1_implicit, data::xrange(5) )
32 BOOST_DATA_TEST_CASE( test_case_arity1, data::xrange(5), my_var )
41 BOOST_DATA_TEST_CASE( test_case_arity2, data::xrange(2) ^ data::xrange(5), apples, potatoes)
/third_party/boost/boost/test/data/monomorphic/generators/
Dxrange.hpp163 xrange( Params const& params ) in xrange() function
173 xrange( SampleType const& end_val ) in xrange() function
184 xrange( SampleType const& end_val, Params const& params ) in xrange() function
194 xrange( SampleType const& begin_val, SampleType const& end_val ) in xrange() function
208 xrange( SampleType const& begin_val, SampleType const& end_val, StepType const& step_val ) in xrange() function
/third_party/node/tools/
Dcompress_json.py9 xrange # Python 2
13 xrange = range # Python 3 variable
28 slices = (data[i:i+step] for i in xrange(0, len(data), step))
/third_party/libinput/tools/
Dmake-ptraccel-graphs.sh23 set xrange [0:400]
43 set xrange [0:400]
64 set xrange [0:400]
82 set xrange [0:1]
Dlibinput-measure-touchpad-size.py61 self.xrange = (x.maximum - x.minimum)
63 self.width = self.xrange / x.resolution
73 …self.rows = int(self.columns * (self.yrange // y.resolution) // (self.xrange // x.resolution) / 2.…
95 self.pos.x = min(0.99, (x - self._x.minimum) / self.xrange)
/third_party/boost/libs/metaparse/tools/
Dstring_headers.py35 for depth in xrange(len(self.names) - 1, -1, -1):
132 xrange(
142 return ('C{0}'.format(i) for i in xrange(0, count))
162 steps = [2 ** n for n in xrange(int(math.log(max_step, 2)), -1, -1)]
246 for limit in xrange(0, max_limit + 1):
270 for i in xrange(prev_limit, length_limit)
/third_party/boost/libs/test/test/smoke-ts/
Dbasic-smoke-test.cpp20 bdata::xrange(2) * bdata::xrange(3),
/third_party/ninja/misc/
Dwrite_fake_manifests.py68 for _ in xrange(n)]
76 for _ in xrange(1 + paretoint(0.6, alpha=4))])
87 for _ in xrange(paretoint(20, alpha=3))]
230 targets = [Target(gen, LIB) for i in xrange(num_targets - 1)]
/third_party/flatbuffers/samples/
Dsample_binary.py109 for i in xrange(monster.InventoryLength()):
115 for i in xrange(monster.WeaponsLength()):
/third_party/boost/libs/test/test/framework-ts/
Ddecorators-datatestcase-test.cpp26 BOOST_DATA_TEST_CASE(test_timeout, data::xrange(2), value)
/third_party/flutter/skia/infra/bots/recipe_modules/gsutil/
Dapi.py37 for i in xrange(UPLOAD_ATTEMPTS):
/third_party/boost/libs/compatibility/
Dgenerate_cpp_c_headers.py263 for i in xrange(n_endif): print '#endif'
/third_party/flatbuffers/python/flatbuffers/
Dcompat.py40 range_func = xrange
/third_party/boost/libs/metaparse/tools/benchmark/
Dgenerate.py60 for _ in xrange(0, number)
108 for i in xrange(bmp_at + len(prefix), len(base)):
/third_party/json/third_party/cpplint/
Dcpplint.py65 xrange # Python 2
68 xrange = range # Python 3 variable
1748 for i in xrange(startpos, len(line)):
1977 for line in xrange(1, min(len(lines), 11)):
2184 for i in xrange(1, len(raw_lines) - 1):
2527 for i in xrange(linenum - 1, self.starting_linenum, -1):
3313 for start_linenum in xrange(linenum, clean_lines.NumLines()):
3770 for i in xrange(first_line, last_line + 1, 1):
3834 for offset in xrange(endlinenum + 1,
4387 for i in xrange(linenum + 1, end_line):
[all …]

123