| /external/icu/icu4j/main/core/src/test/java/com/ibm/icu/dev/test/timezone/ |
| D | TimeZoneRuleTest.java | 5 * Copyright (C) 2007-2011, International Business Machines Corporation and * 55 SimpleTimeZone stz = new SimpleTimeZone(-1*HOUR, "TestSTZ", in TestSimpleRuleBasedTimeZone() 56 Calendar.SEPTEMBER, -30, -Calendar.SATURDAY, 1*HOUR, SimpleTimeZone.WALL_TIME, in TestSimpleRuleBasedTimeZone() 67 -1*HOUR, // Raw offset in TestSimpleRuleBasedTimeZone() 73 1*HOUR, DateTimeRule.WALL_TIME); // SUN<=30 in September, at 1AM wall time in TestSimpleRuleBasedTimeZone() 75 -1*HOUR /* rawOffset */, 1*HOUR /* dstSavings */, dtr, in TestSimpleRuleBasedTimeZone() 79 1*HOUR, DateTimeRule.WALL_TIME); // 2nd Sunday in February, at 1AM wall time in TestSimpleRuleBasedTimeZone() 81 -1*HOUR /* rawOffset */, 0 /* dstSavings */, dtr, in TestSimpleRuleBasedTimeZone() 87 dtr = new DateTimeRule(Calendar.SEPTEMBER, -1, Calendar.SATURDAY, in TestSimpleRuleBasedTimeZone() 88 1*HOUR, DateTimeRule.WALL_TIME); // Last Sunday in September at 1AM wall time in TestSimpleRuleBasedTimeZone() [all …]
|
| /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
| D | TimeZoneRuleTest.java | 6 * Copyright (C) 2007-2011, International Business Machines Corporation and * 58 SimpleTimeZone stz = new SimpleTimeZone(-1*HOUR, "TestSTZ", in TestSimpleRuleBasedTimeZone() 59 Calendar.SEPTEMBER, -30, -Calendar.SATURDAY, 1*HOUR, SimpleTimeZone.WALL_TIME, in TestSimpleRuleBasedTimeZone() 70 -1*HOUR, // Raw offset in TestSimpleRuleBasedTimeZone() 76 1*HOUR, DateTimeRule.WALL_TIME); // SUN<=30 in September, at 1AM wall time in TestSimpleRuleBasedTimeZone() 78 -1*HOUR /* rawOffset */, 1*HOUR /* dstSavings */, dtr, in TestSimpleRuleBasedTimeZone() 82 1*HOUR, DateTimeRule.WALL_TIME); // 2nd Sunday in February, at 1AM wall time in TestSimpleRuleBasedTimeZone() 84 -1*HOUR /* rawOffset */, 0 /* dstSavings */, dtr, in TestSimpleRuleBasedTimeZone() 90 dtr = new DateTimeRule(Calendar.SEPTEMBER, -1, Calendar.SATURDAY, in TestSimpleRuleBasedTimeZone() 91 1*HOUR, DateTimeRule.WALL_TIME); // Last Sunday in September at 1AM wall time in TestSimpleRuleBasedTimeZone() [all …]
|
| /external/deqp/modules/gles31/functional/ |
| D | es31fInfoLogQueryShared.cpp | 1 /*------------------------------------------------------------------------- 3 * ------------------------------------------------- 9 * You may obtain a copy of the License at 11 * http://www.apache.org/licenses/LICENSE-2.0 22 *//*--------------------------------------------------------------------*/ 52 if (logLen > 0 && buf[logLen - 1] != '\0') in verifyInfoLogQuery() 53 result.fail("Return buffer was not INFO_LOG_LENGTH sized and null-terminated"); in verifyInfoLogQuery() 55 result.fail("Buffer end guard modified, query wrote over the end of the buffer."); in verifyInfoLogQuery() 61 int written = -1; in verifyInfoLogQuery() 67 if (written == -1) in verifyInfoLogQuery() [all …]
|
| /external/grpc-grpc/src/ruby/end2end/ |
| D | call_credentials_timeout_test.rb | 7 # You may obtain a copy of the License at 9 # http://www.apache.org/licenses/LICENSE-2.0 32 end 37 fail unless cert.is_a?(String) 39 end 50 end 67 end 68 end 70 fail "failed to complete a successful RPC within #{timeout_seconds} seconds" 71 end [all …]
|
| D | call_credentials_returning_bad_metadata_doesnt_kill_background_thread_test.rb | 7 # You may obtain a copy of the License at 9 # http://www.apache.org/licenses/LICENSE-2.0 32 end 37 fail unless cert.is_a?(String) 39 end 50 end 58 end 59 …fail "Expected call to fail UNAVAILABLE. Got failure:|#{exception}|" unless exception.is_a?(GRPC::… 60 end 76 end [all …]
|
| /external/icu/icu4c/source/test/intltest/ |
| D | tzrulets.cpp | 5 * Copyright (C) 2007-2016, International Business Machines Corporation and 33 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)"… 53 UDate start, UDate end, 87 len = tzenum->count(status); in TestZIDEnumeration() 101 return tzenum->snext(status); in snext() 112 tzenum->reset(status); in reset() 153 SimpleTimeZone stz(-1*HOUR, "TestSTZ", in TestSimpleRuleBasedTimeZone() 154 UCAL_SEPTEMBER, -30, -UCAL_SATURDAY, 1*HOUR, SimpleTimeZone::WALL_TIME, in TestSimpleRuleBasedTimeZone() 158 errln("FAIL: Couldn't create SimpleTimezone."); in TestSimpleRuleBasedTimeZone() 167 -1*HOUR, // Raw offset in TestSimpleRuleBasedTimeZone() [all …]
|
| /external/cronet/third_party/icu/source/test/intltest/ |
| D | tzrulets.cpp | 5 * Copyright (C) 2007-2016, International Business Machines Corporation and 33 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)"… 53 UDate start, UDate end, 87 len = tzenum->count(status); in TestZIDEnumeration() 103 return tzenum->snext(status); in snext() 114 tzenum->reset(status); in reset() 155 SimpleTimeZone stz(-1*HOUR, "TestSTZ", in TestSimpleRuleBasedTimeZone() 156 UCAL_SEPTEMBER, -30, -UCAL_SATURDAY, 1*HOUR, SimpleTimeZone::WALL_TIME, in TestSimpleRuleBasedTimeZone() 160 errln("FAIL: Couldn't create SimpleTimezone."); in TestSimpleRuleBasedTimeZone() 169 -1*HOUR, // Raw offset in TestSimpleRuleBasedTimeZone() [all …]
|
| /external/flatbuffers/kotlin/flatbuffers-kotlin/src/commonMain/kotlin/com/google/flatbuffers/kotlin/ |
| D | FlexBuffers.kt | 6 * You may obtain a copy of the License at in <lambda>() 8 * http://www.apache.org/licenses/LICENSE-2.0 in <lambda>() 29 var end: Int = buffer.limit in <lambda>() variable 30 val byteWidth = buffer[--end].toInt() in <lambda>() 31 val packetType = buffer[--end].toInt() in <lambda>() 32 end -= byteWidth // The root data item. in <lambda>() 33 return Reference(buffer, end, ByteWidth(byteWidth), packetType) in <lambda>() 43 internal val end: Int, constant in com.google.flatbuffers.kotlin.Reference 49 internal constructor(bb: ReadBuffer, end: Int, parentWidth: ByteWidth, packedType: Int) : 50 …this(bb, end, parentWidth, ByteWidth(1 shl (packedType and 3)), FlexBufferType((packedType shr 2))) [all …]
|
| /external/junit/src/main/java/org/junit/rules/ |
| D | ErrorCollector.java | 18 * table, and report them all at once): 30 * // all lines will run, and then a combined failure logged at the end. 46 * Adds a Throwable to the table. Execution continues, but the test will fail at the end. 52 // BEGIN Android-changed: Don't convert assumption failures to errors. b/181123057 in addError() 53 // Submitted upstream: https://github.com/junit-team/junit4/issues/1703 in addError() 63 // END Android-changed: Don't convert assumption failures to errors. b/181123057 in addError() 69 * Execution continues, but the test will fail at the end if the match fails. 78 * Execution continues, but the test will fail at the end if the match fails. 91 * Execution continues, but the test will fail at the end if 111 * Execution continues, but the test will fail at the end if the runnable
|
| /external/wpa_supplicant_8/src/common/ |
| D | dpp_backup.c | 3 * Copyright (c) 2019-2020, The Linux Foundation 23 struct dpp_asymmetric_key *next = key->next; in dpp_free_asymmetric_key() 25 crypto_ec_key_deinit(key->csign); in dpp_free_asymmetric_key() 26 crypto_ec_key_deinit(key->pp_key); in dpp_free_asymmetric_key() 27 str_clear_free(key->config_template); in dpp_free_asymmetric_key() 28 str_clear_free(key->connector_template); in dpp_free_asymmetric_key() 40 …const char *conf_template = "{\"wi-fi_tech\":\"infra\",\"discovery\":{\"ssid\":\"test\"},\"cred\":… in dpp_build_conf_params() 43 if (!conf->pp_key) in dpp_build_conf_params() 46 priv_key = crypto_ec_key_get_ecprivate_key(conf->pp_key, false); in dpp_build_conf_params() 57 goto fail; in dpp_build_conf_params() [all …]
|
| /external/guava/guava-tests/test/com/google/common/collect/ |
| D | AbstractIteratorTest.java | 6 * You may obtain a copy of the License at 8 * http://www.apache.org/licenses/LICENSE-2.0 39 // second, then signals that it's reached the end of the data in testDefaultBehaviorOfNextAndHasNext() 75 fail("no exception thrown"); in testDefaultBehaviorOfNextAndHasNext() 83 * second, then signals that it's reached the end of the data in testDefaultBehaviorOfPeek() 115 fail("peek() should throw NoSuchElementException at end"); in testDefaultBehaviorOfPeek() 121 fail("peek() should continue to throw NoSuchElementException at end"); in testDefaultBehaviorOfPeek() 127 fail("next() should throw NoSuchElementException as usual"); in testDefaultBehaviorOfPeek() 133 fail("peek() should still throw NoSuchElementException after next()"); in testDefaultBehaviorOfPeek() 162 fail("Should not have been invoked again"); in testDefaultBehaviorOfPeekForEmptyIteration() [all …]
|
| /external/guava/android/guava-tests/test/com/google/common/collect/ |
| D | AbstractIteratorTest.java | 6 * You may obtain a copy of the License at 8 * http://www.apache.org/licenses/LICENSE-2.0 39 // second, then signals that it's reached the end of the data in testDefaultBehaviorOfNextAndHasNext() 75 fail("no exception thrown"); in testDefaultBehaviorOfNextAndHasNext() 83 * second, then signals that it's reached the end of the data in testDefaultBehaviorOfPeek() 115 fail("peek() should throw NoSuchElementException at end"); in testDefaultBehaviorOfPeek() 121 fail("peek() should continue to throw NoSuchElementException at end"); in testDefaultBehaviorOfPeek() 127 fail("next() should throw NoSuchElementException as usual"); in testDefaultBehaviorOfPeek() 133 fail("peek() should still throw NoSuchElementException after next()"); in testDefaultBehaviorOfPeek() 162 fail("Should not have been invoked again"); in testDefaultBehaviorOfPeekForEmptyIteration() [all …]
|
| /external/apache-velocity-engine/velocity-engine-core/src/test/java/org/apache/velocity/test/ |
| D | VelocimacroTestCase.java | 10 * with the License. You may obtain a copy of the License at 12 * http://www.apache.org/licenses/LICENSE-2.0 40 …emplate1 = "#macro(foo $a)$a#end #macro(bar $b)#foo($b)#end #foreach($i in [1..3])#if($i == 3)#foo… 42 private String template2 = "#macro(bar $a)#set($a = $a + 1)$a#bar($a)#end#bar(0)"; 43 …ing template3 = "#macro(baz $a)#set($a = $a + 1)$a#inner($a)#end#macro(inner $b)#baz($b)#end#baz(0… 44 …"#macro(bad $a)#set($a = $a + 1)$a#inside($a)#end#macro(inside $b)#loop($b)#end#macro(loop $c)#bad… 86 fail("output incorrect."); in testVelociMacro() 102 fail("Did not exceed max macro call depth as expected"); in testVelociMacroCallMax() 107 … " with Call Stack:bar->bar->bar->bar->bar at vm_chain2[line 1, column 15]", in testVelociMacroCallMax() 114 fail("Did not exceed max macro call depth as expected"); in testVelociMacroCallMax() [all …]
|
| D | IfEmptyTestCase.java | 10 * with the License. You may obtain a copy of the License at 12 * http://www.apache.org/licenses/LICENSE-2.0 43 assertEvalEquals("", "#if( $obj )fail#end"); in assertEmpty() 49 assertEvalEquals("", "#if( !$obj )fail#end"); in assertNotEmpty() 105 assertEvalEquals("", "#if( 0 )fail#end"); in testLiterals() 106 assertEvalEquals("", "#if( 0.0 )fail#end"); in testLiterals() 107 assertEvalEquals("", "#if( '' )fail#end"); in testLiterals() 108 assertEvalEquals("", "#if( \"\" )fail#end"); in testLiterals() 109 assertEvalEquals("", "#if( [] )fail#end"); in testLiterals() 110 assertEvalEquals("", "#if( {} )fail#end"); in testLiterals() [all …]
|
| D | IfEmptyNoEmptyCheckTestCase.java | 10 * with the License. You may obtain a copy of the License at 12 * http://www.apache.org/licenses/LICENSE-2.0 46 assertEvalEquals("", "#if( $obj )fail#end"); in assertEmpty() 52 assertEvalEquals("", "#if( !$obj )fail#end"); in assertNotEmpty() 88 assertEvalEquals("", "#if( !0 )fail#end"); in testLiterals() 89 assertEvalEquals("", "#if( !0.0 )fail#end"); in testLiterals() 90 assertEvalEquals("", "#if( !'' )fail#end"); in testLiterals() 91 assertEvalEquals("", "#if( !\"\" )fail#end"); in testLiterals() 92 assertEvalEquals("", "#if( ![] )fail#end"); in testLiterals() 93 assertEvalEquals("", "#if( !{} )fail#end"); in testLiterals()
|
| /external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
| D | TimeTest.java | 7 * the License. You may obtain a copy of the License at 9 * http://www.apache.org/licenses/LICENSE-2.0 34 static long TIME_TEST3 = -38720000; // 13:14:40 GMT 46 static String STRING_INVALID3 = "21-43-48"; 65 static String TZ_PACIFIC = "America/Los_Angeles"; // GMT - 8 80 } // end method testTimeintintint() in testTimeintintint() 87 } // end method testTime() in testTime() 93 } // end for in testToString() 95 } // end method test in testToString() 108 } // end for in testToString() [all …]
|
| D | DateTest.java | 7 * the License. You may obtain a copy of the License at 9 * http://www.apache.org/licenses/LICENSE-2.0 42 static long TIME_NEGATIVE = -3600001; 56 static String SQL_DATESTRING1 = "1999-12-31"; 58 static String SQL_DATESTRING2 = "2010-06-10"; 60 static String SQL_DATESTRING3 = "1931-04-21"; 62 static String SQL_EPOCHSTRING = "1970-01-01"; 64 static String SQL_DATEDAY1 = "1970-01-02"; 66 static String SQL_NEGATIVE = "1969-12-31"; 75 // Date string array for New York - sometimes a day earlier than London [all …]
|
| /external/python/cpython2/Lib/test/ |
| D | test_xrange.py | 1 # Python test set -- built-in functions 14 if (start - stop) // step < 0: 17 stop += (start - stop) % step 23 stop += (start - stop) % step 24 return pyrange(stop - step, start - step, -step) 40 self.fail('{}: iterator ended unexpectedly ' 41 'at position {}; expected {}'.format(test_id, i, y)) 43 self.fail('{}: unexpected excess element {} at ' 46 self.fail('{}: wrong element at position {};' 55 self.fail('{} and {} have different ' [all …]
|
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
| D | assertions.xml | 4 the process at an address pa for len bytes to the memory object represented 5 by the file descriptor fildes at offset off for len bytes. 25 The prot shall be either PROT_NONE or the bitwise- 37 has been set. The implementation shall support at least the following values of prot: 38 PROT_NONE, PROT_READ, PROT_WRITE, and the bitwise-inclusive OR of PROT_READ and 47 It is implementation-defined whether MAP_FIXED shall be supported. MAP_FIXED shall be 48 supported on XSI-conformant systems. 74 When MAP_FIXED is not set, the implementation uses addr in an implementation-defined 75 manner to arrive at pa. The pa so chosen shall be an area of the address space that the 78 subject to constraints described below. A non-zero value of addr is taken to be a suggestion of a [all …]
|
| /external/kotlinx.serialization/formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/ |
| D | AbstractJsonLexer.kt | 2 …* Copyright 2017-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 licen… 13 internal const val lenientHint = "Use 'isLenient = true' in 'Json {}' builder to accept non-complia… 60 TC_STRING -> "quotation mark '\"'" in tokenDescription() 61 TC_STRING_ESC -> "string escape sequence '\\'" in tokenDescription() 62 TC_COMMA -> "comma ','" in tokenDescription() 63 TC_COLON -> "colon ':'" in tokenDescription() 64 TC_BEGIN_OBJ -> "start of the object '{'" in tokenDescription() 65 TC_END_OBJ -> "end of the object '}'" in tokenDescription() 66 TC_BEGIN_LIST -> "start of the array '['" in tokenDescription() 67 TC_END_LIST -> "end of the array ']'" in tokenDescription() [all …]
|
| /external/cldr/tools/cldr-code/src/main/resources/org/unicode/cldr/draft/ |
| D | idnaContextRules.txt | 3 # Provides a table-based mechanism for determining whether a label is a U-Label or not. 9 # If any of the following regex expressions is found in the label, then the label is not a valid U-… 10 # These rules provide a machine-readable way to test that. This is intended for a reference (test) … 11 # implementations would typically use hand-coded versions that would be much more optimized. 12 …e context rules are derived from http://tools.ietf.org/html/draft-ietf-idnabis-tables-05#appendix-A 17 # Everything at and after # is a comment, and ignored. 27 # <before>; <at>; <result> 30 # <before> and <at> are both regex expressions 31 # <result> is either "fail" or "next" 39 # If <before> and <at> both match, then the result is applied as follows: [all …]
|
| /external/mesa3d/src/amd/compiler/tests/ |
| D | check_output.py | 52 insert_code(f'success = {name}0 + {size - 1} == {name}{size - 1}') 54 return f'{prefix}[#{name}0:#{name}{size - 1}]' 94 indent_amount = len(first_line) - len(first_line.lstrip()) 113 state.result.log += 'code check at %s raised exception:\n' % self.position 118 state.result.log += 'code check at %s failed:\n' % self.position 158 return self.data.split('\n')[num - 1].rstrip() 188 def format_error_lines(at, line_num, column_num, ctx, line): argument 189 pred = '%s line %d, column %d of %s: "' % (at, line_num, column_num, ctx) 191 '-' * (column_num - 1 + len(pred)) + '^'] 208 def fail(self, msg): member in MatchResult [all …]
|
| /external/bazel-skylib/docs/ |
| D | unittest_doc.md | 1 <!-- Generated with Stardoc: http://skydoc.bazel.build --> 23 …-name">name</a>, <a href="#unittest_toolchain-escape_chars_with">escape_chars_with</a>, <a href="#… 24 …<a href="#unittest_toolchain-join_on">join_on</a>, <a href="#unittest_toolchain-success_templ">suc… 33 | :------------- | :------------- | :------------- | :------------- | :------------- | 34 … id="unittest_toolchain-name"></a>name | A unique name for this target. | <a href="https://baze… 35 …-escape_chars_with"></a>escape_chars_with | Dictionary of characters that need escaping in test f… 36 | <a id="unittest_toolchain-escape_other_chars_with"></a>escape_other_chars_with | String to prefi… 37 …-failure_templ"></a>failure_templ | Test script template with a single `%s`. That placeholder is … 38 | <a id="unittest_toolchain-file_ext"></a>file_ext | File extension for test script, including lea… 39 | <a id="unittest_toolchain-join_on"></a>join_on | String used to join the lines in the failure me… [all …]
|
| /external/bazel-skylib/tests/ |
| D | unittest_test.sh | 7 # You may obtain a copy of the License at 9 # http://www.apache.org/licenses/LICENSE-2.0 17 # End to end tests for unittest.bzl. 19 # Specifically, end to end tests of unittest.bzl cover verification that 20 # analysis-phase tests written with unittest.bzl appropriately 23 # --- begin runfiles.bash initialization --- 24 set -euo pipefail 25 if [[ ! -d "${RUNFILES_DIR:-/dev/null}" && ! -f "${RUNFILES_MANIFEST_FILE:-/dev/null}" ]]; then 26 if [[ -f "$0.runfiles_manifest" ]]; then 28 elif [[ -f "$0.runfiles/MANIFEST" ]]; then [all …]
|
| /external/python/cpython2/Modules/ |
| D | binascii.c | 2 ** Routines to represent binary data in ASCII and vice-versa 11 ** ASCII encoding method is "excess-space": 000000 is encoded as ' ', etc. 12 ** short binary data is zero-extended (so the bits are always in the 15 ** Line breaks are insignificant, but lines are at most 76 chars 23 ** Each part is protected (at the end) with a 16-bit crc 24 ** The binary data is run-length encoded, and then ascii-fied: 27 ** ASCII encoding is table-driven, see the code. 28 ** Short binary data results in the runt ascii-byte being output with 32 ** here (documentation? hihi:-) I have formulated Jansen's Observation: 38 ** using seemingly-descriptive variable names for different purposes, [all …]
|