Home
last modified time | relevance | path

Searched refs:expect_val (Results 1 – 4 of 4) sorted by relevance

/third_party/mindspore/tests/st/ops/ascend/
Dtest_unique_with_pad.py42 expect_val = ([1, 5, 4, 3, 2, 8, 8, 8, 8, 8], [0, 0, 1, 1, 2, 2, 3, 3, 4, 4])
43 assert(out[0].asnumpy() == expect_val[0]).all()
44 assert(out[1].asnumpy() == expect_val[1]).all()
/third_party/unity/src/
Dunity.c806 UNITY_INT expect_val; in UnityAssertEqualIntArray() local
812 expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT8*)expected; in UnityAssertEqualIntArray()
818 expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT16*)expected; in UnityAssertEqualIntArray()
825 expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT64*)expected; in UnityAssertEqualIntArray()
833 expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT32*)expected; in UnityAssertEqualIntArray()
840 if (expect_val != actual_val) in UnityAssertEqualIntArray()
846 expect_val &= mask; in UnityAssertEqualIntArray()
853 UnityPrintNumberByStyle(expect_val, style); in UnityAssertEqualIntArray()
1257 UNITY_INT expect_val; in UnityAssertNumbersArrayWithin() local
1263 expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT8*)expected; in UnityAssertNumbersArrayWithin()
[all …]
/third_party/python/Lib/test/
Dtest_cgi.py193 expect_val = expect[key]
195 if len(expect_val) > 1:
196 self.assertEqual(fs.getvalue(key), expect_val)
198 self.assertEqual(fs.getvalue(key), expect_val[0])
217 expect_val = expect[key]
219 if len(expect_val) > 1:
220 self.assertEqual(fs.getvalue(key), expect_val)
222 self.assertEqual(fs.getvalue(key), expect_val[0])
/third_party/cJSON/tests/unity/src/
Dunity.c625 UNITY_INT expect_val; in UnityAssertEqualIntArray() local
630 expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT8*)expected; in UnityAssertEqualIntArray()
634 expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT16*)expected; in UnityAssertEqualIntArray()
639 expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT64*)expected; in UnityAssertEqualIntArray()
644 expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT32*)expected; in UnityAssertEqualIntArray()
650 if (expect_val != actual_val) in UnityAssertEqualIntArray()
652 if (style & UNITY_DISPLAY_RANGE_UINT && length < sizeof(expect_val)) in UnityAssertEqualIntArray()
656 expect_val &= mask; in UnityAssertEqualIntArray()
663 UnityPrintNumberByStyle(expect_val, style); in UnityAssertEqualIntArray()