MCPcopy Create free account
hub / github.com/OriginQ/QPanda-2 / TEST

Function TEST

test/QAlg/ArithmeticUnit_V2.test.cpp:148–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148TEST(QAdd_V2, DDT_test_compare_with_original_QAdd)
149{
150 int bit_len = 2;
151 for (; bit_len <= 5; bit_len++)
152 {
153 int max_value = std::pow(2, bit_len - 1);
154
155 for (int a = 1 - max_value; a < max_value; a++)
156 {
157 for (int b = 1 - max_value; b < max_value; b++)
158 {
159 checkAdder(bit_len, a, b);
160 }
161 }
162 }
163}
164
165// -------------------------------------------------------------------------------------------
166// use DDT test Complement

Callers

nothing calls this directly

Calls 3

checkAdderFunction · 0.85
checkQComplementFunction · 0.85
powFunction · 0.50

Tested by

no test coverage detected