/external/starlark-go/starlark/testdata/ |
D | float.star | 7 # - precision 8 # - limits 11 assert.eq(type(0.0), "float") 15 assert.true(-1.0) 17 assert.true(-1.0e-45) 25 assert.eq(type(1.234), "float") 26 assert.eq(type(1e10), "float") 27 assert.eq(type(1e+10), "float") 28 assert.eq(type(1e-10), "float") 29 assert.eq(type(1.234e10), "float") [all …]
|
D | int.star | 6 assert.eq(0 - 1, -1) 7 assert.eq(0 + 1, +1) 8 assert.eq(1 + 1, 2) 9 assert.eq(5 + 7, 12) 10 assert.eq(5 * 7, 35) 11 assert.eq(5 - 7, -2) 14 maxint64 = (1 << 63) - 1 15 minint64 = -1 << 63 16 maxint32 = (1 << 31) - 1 17 minint32 = -1 << 31 [all …]
|
D | string.star | 7 assert.eq(r"a\bc", "a\\bc") 15 assert.eq("a" + "b" + "c", "abc") 18 assert.eq("abc" * 0, "") 19 assert.eq("abc" * -1, "") 20 assert.eq("abc" * 1, "abc") 21 assert.eq("abc" * 5, "abcabcabcabcabc") 22 assert.eq(0 * "abc", "") 23 assert.eq(-1 * "abc", "") 24 assert.eq(1 * "abc", "abc") 25 assert.eq(5 * "abc", "abcabcabcabcabc") [all …]
|
D | list.star | 6 assert.eq([], []) 7 assert.eq([1], [1]) 8 assert.eq([1], [1]) 9 assert.eq([1, 2], [1, 2]) 18 assert.fails(lambda: abc[-4], "list index -4 out of range \\[-3:2]") 19 assert.eq(abc[-3], "a") 20 assert.eq(abc[-2], "b") 21 assert.eq(abc[-1], "c") 22 assert.eq(abc[0], "a") 23 assert.eq(abc[1], "b") [all …]
|
D | bytes.star | 5 # bytes(string) -- UTF-k to UTF-8 transcoding with U+FFFD replacement 10 assert.eq(bytes("hello, 世界"[:-1]), b"hello, 世��") 12 # bytes(iterable of int) -- construct from numeric byte values 13 assert.eq(bytes([65, 66, 67]), b"ABC") 14 assert.eq(bytes((65, 66, 67)), b"ABC") 15 assert.eq(bytes([0xf0, 0x9f, 0x98, 0xbf]), b"") 17 "at index 0, 300 out of range .want value in unsigned 8-bit range") 23 assert.eq(b"hello, 世界", hello) 24 assert.eq(b"goodbye", goodbye) 25 assert.eq(b"", empty) [all …]
|
D | builtins.star | 1 # Tests of Starlark built-in functions 7 assert.eq(len([1, 2, 3]), 3) 8 assert.eq(len((1, 2, 3)), 3) 9 assert.eq(len({1: 2}), 1) 13 assert.eq(123 or "foo", 123) 14 assert.eq(0 or "foo", "foo") 15 assert.eq(123 and "foo", "foo") 16 assert.eq(0 and "foo", 0) 40 assert.eq(sorted([42, 123, 3]), [3, 42, 123]) 41 assert.eq(sorted([42, 123, 3], reverse=True), [123, 42, 3]) [all …]
|
/external/icu/icu4c/source/i18n/ |
D | number_decimfmtprops.cpp | 45 formatWidth = -1; in clear() 46 groupingSize = -1; in clear() 49 maximumFractionDigits = -1; in clear() 50 maximumIntegerDigits = -1; in clear() 51 maximumSignificantDigits = -1; in clear() 52 minimumExponentDigits = -1; in clear() 53 minimumFractionDigits = -1; in clear() 54 minimumGroupingDigits = -1; in clear() 55 minimumIntegerDigits = -1; in clear() 56 minimumSignificantDigits = -1; in clear() [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_base64.py | 9 eq = self.assertEqual 10 eq(base64.encodestring("www.python.org"), "d3d3LnB5dGhvbi5vcmc=\n") 11 eq(base64.encodestring("a"), "YQ==\n") 12 eq(base64.encodestring("ab"), "YWI=\n") 13 eq(base64.encodestring("abc"), "YWJj\n") 14 eq(base64.encodestring(""), "") 15 eq(base64.encodestring("abcdefghijklmnopqrstuvwxyz" 21 # Non-bytes 22 eq(base64.encodestring(bytearray('abc')), 'YWJj\n') 25 eq = self.assertEqual [all …]
|
D | test_gettext.py | 11 # - Add new tests, for example for "dgettext" 12 # - Remove dummy tests, for example testing for single and double quotes 14 # - Tests should have only one assert. 98 eq = self.assertEqual 100 eq(_('albatross'), 'albatross') 101 eq(_(u'mullusk'), 'bacon') 102 eq(_(r'Raymond Luxury Yach-t'), 'Throatwobbler Mangrove') 103 eq(_(ur'nudge nudge'), 'wink wink') 106 eq = self.assertEqual 108 eq(_("albatross"), 'albatross') [all …]
|
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/ |
D | erase_key.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 58 typedef std::pair<C::const_iterator, C::const_iterator> Eq; in main() typedef 59 Eq eq = c.equal_range(1); in main() local 60 assert(std::distance(eq.first, eq.second) == 2); in main() 61 C::const_iterator k = eq.first; in main() 62 assert(k->first == 1); in main() 63 assert(k->second == "one"); in main() 65 assert(k->first == 1); in main() 66 assert(k->second == "four"); in main() [all …]
|
D | erase_range.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 45 typedef std::pair<C::iterator, C::iterator> Eq; in main() typedef 46 Eq eq = c.equal_range(1); in main() local 47 assert(std::distance(eq.first, eq.second) == 2); in main() 48 k = eq.first; in main() 49 assert(k->first == 1); in main() 50 assert(k->second == "one"); in main() 52 assert(k->first == 1); in main() 53 assert(k->second == "four"); in main() [all …]
|
/external/icing/icing/transform/icu/ |
D | icu-normalizer_test.cc | 7 // http://www.apache.org/licenses/LICENSE-2.0 19 #include "icing/testing/common-matchers.h" 20 #include "icing/testing/icu-data-file-helper.h" 21 #include "icing/testing/icu-i18n-test-utils.h" 22 #include "icing/testing/test-data.h" 23 #include "icing/transform/normalizer-factory.h" 29 using ::testing::Eq; 54 /*max_term_byte_size=*/-1), in TEST_F() 60 EXPECT_THAT(normalizer_->NormalizeTerm(""), Eq("")); in TEST_F() 61 EXPECT_THAT(normalizer_->NormalizeTerm("hello world"), Eq("hello world")); in TEST_F() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_future.py | 82 # bpo-39562: test that future flags and compiler flags doesn't clash 129 def f() -> {ann}: 131 def g(arg: {ann}) -> None: 133 async def f2() -> {ann}: 135 async def g2(arg: {ann}) -> None: 167 expected = annotation if not is_tuple else annotation[1:-1] 183 eq = self.assertAnnotationEqual 184 eq('...') 185 eq("'some_string'") 186 eq("u'some_string'") [all …]
|
/external/icing/icing/transform/map/ |
D | map-normalizer_test.cc | 7 // http://www.apache.org/licenses/LICENSE-2.0 22 #include "icing/testing/common-matchers.h" 23 #include "icing/testing/icu-i18n-test-utils.h" 24 #include "icing/transform/normalizer-factory.h" 26 #include "icing/util/character-iterator.h" 32 using ::testing::Eq; 42 /*max_term_byte_size=*/-1), in TEST() 51 EXPECT_THAT(normalizer->NormalizeTerm(""), Eq("")); in TEST() 52 EXPECT_THAT(normalizer->NormalizeTerm("hello world"), Eq("hello world")); in TEST() 53 EXPECT_THAT(normalizer->NormalizeTerm("你好"), Eq("你好")); in TEST() [all …]
|
/external/python/cpython2/Lib/email/test/ |
D | test_email_renamed.py | 1 # Copyright (C) 2001-2007 Python Software Foundation 2 # Contact: email-sig@python.org 76 eq = self.assertEqual 78 eq(msg.get_all('cc'), ['ccc@zzz.org', 'ddd@zzz.org', 'eee@zzz.org']) 79 eq(msg.get_all('xx', 'n/a'), 'n/a') 82 eq = self.assertEqual 84 eq(msg.get_charset(), None) 85 charset = Charset('iso-8859-1') 87 eq(msg['mime-version'], '1.0') 88 eq(msg.get_content_type(), 'text/plain') [all …]
|
D | test_email.py | 1 # Copyright (C) 2001-2010 Python Software Foundation 2 # Contact: email-sig@python.org 81 eq = self.assertEqual 83 eq(msg.get_all('cc'), ['ccc@zzz.org', 'ddd@zzz.org', 'eee@zzz.org']) 84 eq(msg.get_all('xx', 'n/a'), 'n/a') 87 eq = self.assertEqual 89 eq(msg.get_charset(), None) 90 charset = Charset('iso-8859-1') 92 eq(msg['mime-version'], '1.0') 93 eq(msg.get_content_type(), 'text/plain') [all …]
|
/external/llvm/test/MC/ARM/ |
D | thumb2-narrow-dp.ll | 1 // RUN: llvm-mc -triple thumbv7 -show-encoding < %s | FileCheck %s 3 // Test each of the Thumb1 data-processing instructions 7 // - Rd == Rn 8 // - Rd, Rn and Rm are < r8 11 // - Rd == Rn || Rd == Rm 12 // - Rd, Rn and Rm are < r8 24 IT EQ 25 // CHECK: it eq @ encoding: [0x08,0xbf] 28 IT EQ 29 // CHECK: it eq @ encoding: [0x08,0xbf] [all …]
|
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/ |
D | assign_move.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 67 typedef std::pair<C::const_iterator, C::const_iterator> Eq; in main() typedef 68 Eq eq = c.equal_range(1); in main() local 69 assert(std::distance(eq.first, eq.second) == 2); in main() 70 C::const_iterator i = eq.first; in main() 71 assert(i->first == 1); in main() 72 assert(i->second == "one"); in main() 74 assert(i->first == 1); in main() 75 assert(i->second == "four"); in main() [all …]
|
D | init.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 52 typedef std::pair<C::const_iterator, C::const_iterator> Eq; in main() typedef 53 Eq eq = c.equal_range(1); in main() local 54 assert(std::distance(eq.first, eq.second) == 2); in main() 55 C::const_iterator i = eq.first; in main() 56 assert(i->first == 1); in main() 57 assert(i->second == "one"); in main() 59 assert(i->first == 1); in main() 60 assert(i->second == "four"); in main() [all …]
|
D | range.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 55 typedef std::pair<C::const_iterator, C::const_iterator> Eq; in main() typedef 56 Eq eq = c.equal_range(1); in main() local 57 assert(std::distance(eq.first, eq.second) == 2); in main() 58 C::const_iterator i = eq.first; in main() 59 assert(i->first == 1); in main() 60 assert(i->second == "one"); in main() 62 assert(i->first == 1); in main() 63 assert(i->second == "four"); in main() [all …]
|
D | move_alloc.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 63 typedef std::pair<C::const_iterator, C::const_iterator> Eq; in main() typedef 64 Eq eq = c.equal_range(1); in main() local 65 assert(std::distance(eq.first, eq.second) == 2); in main() 66 C::const_iterator i = eq.first; in main() 67 assert(i->first == 1); in main() 68 assert(i->second == "one"); in main() 70 assert(i->first == 1); in main() 71 assert(i->second == "four"); in main() [all …]
|
D | init_size_hash_equal_allocator.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 58 typedef std::pair<C::const_iterator, C::const_iterator> Eq; in main() typedef 59 Eq eq = c.equal_range(1); in main() local 60 assert(std::distance(eq.first, eq.second) == 2); in main() 61 C::const_iterator i = eq.first; in main() 62 assert(i->first == 1); in main() 63 assert(i->second == "one"); in main() 65 assert(i->first == 1); in main() 66 assert(i->second == "four"); in main() [all …]
|
/external/iptables/iptables/tests/shell/testcases/nft-only/ |
D | 0009-needless-bitwise_0 | 1 #!/bin/bash -x 3 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; } 4 set -e 12 echo "-A OUTPUT -d $addr" 15 ) | $XT_MULTI iptables-restore 21 echo "-A OUTPUT -d $addr" 24 ) | $XT_MULTI ip6tables-restore 39 echo "-A OUTPUT -d $addr" 42 echo "-A OUTPUT --destination-mac fe:ed:00:c0:ff:ee/$mask" 45 ) | $XT_MULTI arptables-restore [all …]
|
/external/linux-kselftest/tools/testing/selftests/kexec/ |
D | test_kexec_file_load.sh | 2 # SPDX-License-Identifier: GPL-2.0 11 # enabled or access to the extract-ikconfig script. 16 trap "{ rm -f $IKCONFIG ; }" EXIT 30 if [ $? -eq 1 ]; then 42 if [ $ima_read_policy -eq 1 ]; then 46 if [ $ret -eq 1 ]; then 52 [ $ret -eq 1 ] && log_info "IMA signature required"; 64 pesign -i $KERNEL_IMAGE --show-signature | grep -q "No signatures" 66 if [ $ret -eq 1 ]; then 81 if [ $? -eq 1 ]; then [all …]
|
/external/python/cpython3/Lib/idlelib/idle_test/ |
D | test_configdialog.py | 154 fontlist.event_generate('<Key-Down>') 155 fontlist.event_generate('<KeyRelease-Down>') 164 fontlist.event_generate('<Key-Up>') 165 fontlist.event_generate('<KeyRelease-Up>') 186 fontlist.event_generate('<Button-1>', x=x, y=y) 187 fontlist.event_generate('<ButtonRelease-1>', x=x, y=y) 224 'font-size': default_size, 225 'font-bold': str(default_bold)}} 232 'font-size': '20', 233 'font-bold': str(default_bold)}} [all …]
|