Home
last modified time | relevance | path

Searched refs:toString (Results 1 – 25 of 3385) sorted by relevance

12345678910>>...136

/external/v8/test/mjsunit/
Dnumber-tostring-small.js34 (NaN).toString();
35 (1/0).toString();
36 (-1/0).toString();
37 (0).toString();
38 (9).toString();
39 (90).toString();
40 (90.12).toString();
41 (0.1).toString();
42 (0.01).toString();
43 (0.0123).toString();
[all …]
Dnumber-tostring.js30 assertEquals("NaN", (NaN).toString());
31 assertEquals("Infinity", (1/0).toString());
32 assertEquals("-Infinity", (-1/0).toString());
33 assertEquals("0", (0).toString());
34 assertEquals("9", (9).toString());
35 assertEquals("90", (90).toString());
36 assertEquals("90.12", (90.12).toString());
37 assertEquals("0.1", (0.1).toString());
38 assertEquals("0.01", (0.01).toString());
39 assertEquals("0.0123", (0.0123).toString());
[all …]
Darray-tostring.js44 assertEquals(a1.join(), a1.toString());
50 assertEquals(success, a2.toString());
56 assertEquals("[object Array]", a3.toString());
60 a4.__proto__ = { toString: Array.prototype.toString }; property
62 assertEquals("[object Array]", a4.toString());
69 toString: Array.prototype.toString, property
71 assertEquals(o1.join(), o1.toString());
76 var o2 = {toString : Array.prototype.toString, property
81 assertEquals(success, o2.toString());
85 toString: Array.prototype.toString, property
[all …]
/external/v8/test/webkit/
Dinteger-extremes-expected.txt29 PASS (-1).toString() is "-1"
30 PASS (0).toString() is "0"
31 PASS (-0).toString() is "0"
34 PASS min.toString() is "-128"
35 PASS (min - 1).toString() is "-129"
36 PASS max.toString() is "127"
37 PASS (max + 1).toString() is "128"
39 PASS min.toString() is "-256"
40 PASS (min - 1).toString() is "-257"
41 PASS max.toString() is "255"
[all …]
Ddfg-to-string-side-effect-expected.txt30 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
32 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
34 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
36 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
38 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
40 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
42 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
44 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
46 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
48 PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
[all …]
/external/v8/test/mjsunit/regress/
Dregress-3116.js6 var str = (new Date(2014, 0, 10)).toString();
21 (new Date(2014, 2, 29, 22, 59)).toString());
25 (new Date(2014, 2, 29, 23, 0)).toString());
29 (new Date(2014, 2, 29, 23, 59)).toString());
33 (new Date(2014, 2, 30, 0, 0)).toString());
37 (new Date(2014, 2, 30, 0, 59)).toString());
41 (new Date(2014, 2, 30, 1, 0)).toString());
45 (new Date(2014, 2, 30, 1, 59)).toString());
49 (new Date(2014, 2, 30, 2, 0)).toString());
53 (new Date(2014, 2, 30, 2, 59)).toString());
[all …]
/external/v8/test/webkit/fast/js/
DtoString-number-expected.txt24 Test the conversion performed by the function Number.prototype.toString.
29 PASS Number(0).toString() is "0"
30 PASS Number.prototype.toString.call(0) is "0"
31 PASS Number.prototype.toString.call(new Number(0)) is "0"
32 PASS Number("0").toString() is "0"
33 PASS Number(0).toString(10) is "0"
34 PASS Number(0).toString(2) is "0"
35 PASS Number.prototype.toString.call(0, 2) is "0"
36 PASS Number.prototype.toString.call(new Number(0), 2) is "0"
37 PASS Number(0).toString(36) is "0"
[all …]
Dnumber-toString-expected.txt24 PASS (0.0).toString(4) is "0"
25 PASS (-0.0).toString(4) is "0"
26 PASS (0.0).toString() is "0"
27 PASS (-0.0).toString() is "0"
28 PASS (1234.567).toString() is "1234.567"
29 PASS (1234.567).toString(0) threw exception RangeError: toString() radix argument must be between 2…
30 PASS (1234.567).toString(null) threw exception RangeError: toString() radix argument must be betwee…
31 PASS (1234.567).toString(false) threw exception RangeError: toString() radix argument must be betwe…
32 PASS (1234.567).toString('foo') threw exception RangeError: toString() radix argument must be betwe…
33 PASS (1234.567).toString(nan) threw exception RangeError: toString() radix argument must be between…
[all …]
Dregexp-unicode-handling-expected.txt39 PASS inlineRe.toString() is newFromInlineRe.toString()
40 PASS inlineRe.toString() is evalFromInlineRe.toString()
41 PASS inlineRe.toString() is evalInlineRe.toString()
42 PASS inlineRe.toString() is newFromEvalInlineRe.toString()
43 PASS inlineRe.toString() is evalFromEvalInlineRe.toString()
44 PASS inlineRe.toString() is explicitRe.toString()
45 PASS inlineRe.toString() is newFromExplicitRe.toString()
46 PASS inlineRe.toString() is evalFromExplicitRe.toString()
58 PASS binlineRe.toString() is bnewFromInlineRe.toString()
59 PASS binlineRe.toString() is bevalFromInlineRe.toString()
[all …]
Dregexp-no-extensions-expected.txt30 PASS /[\x{41}]/.exec("yA1").toString() is "1"
31 PASS /\x1g/.exec("x1g").toString() is "x1g"
32 PASS /[\x1g]/.exec("x").toString() is "x"
33 PASS /[\x1g]/.exec("1").toString() is "1"
34 PASS /\2147483648/.exec(String.fromCharCode(140) + "7483648").toString() is String.fromCharCode(140…
35 PASS /\4294967296/.exec("\"94967296").toString() is "\"94967296"
36 FAIL /\8589934592/.exec("\\8589934592").toString() should be \8589934592. Was 8589934592.
44 PASS /\060/.exec("y01").toString() is "0"
45 PASS /[\060]/.exec("y01").toString() is "0"
46 PASS /\606/.exec("y06").toString() is "06"
[all …]
Dregexp-ranges-and-escaped-hyphens-expected.txt29 PASS regexp01.toString() is "1235"
30 PASS regexp01a.toString() is "123 5"
31 PASS regexp01b.toString() is "1-3 5"
32 PASS regexp01c.toString() is "1-3 5"
33 PASS regexp01d.toString() is "123 5"
34 PASS regexp01e.toString() is "123 5"
35 PASS regexp01f.toString() is "-3"
36 PASS regexp01g.toString() is "2-"
37 PASS regexp02.toString() is "1-35"
38 PASS regexp02a.toString() is "1-3 5"
[all …]
/external/v8/test/webkit/fast/js/kde/
Dobject_prototype_tostring.js26 _array.toString = Object.prototype.toString;
29 _string.toString = Object.prototype.toString;
32 _boolean.toString = Object.prototype.toString;
35 _number.toString = Object.prototype.toString;
38 _object.toString = Object.prototype.toString;
41 _date.toString = Object.prototype.toString;
44 _regexp.toString = Object.prototype.toString;
47 _error.toString = Object.prototype.toString;
50 _function.toString = Object.prototype.toString;
/external/google-tv-pairing-protocol/java/src/com/google/polo/json/
DTest.java66 public String toString() { in main() method in Test.Obj
77 System.out.println(j.toString()); in main()
81 System.out.println(j.toString(4)); in main()
82 System.out.println(XML.toString(j)); in main()
86 System.out.println(j.toString(4)); in main()
90 System.out.println(j.toString()); in main()
91 System.out.println(JSONML.toString(j)); in main()
95 System.out.println(a.toString(4)); in main()
96 System.out.println(JSONML.toString(a)); in main()
101 System.out.println(j.toString(4)); in main()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bigdec/
DDiagBigDecimal.java412 (new Test("con001")).ok = (com.ibm.icu.math.BigDecimal.ZERO.toString()).equals("0"); in diagconstructors()
413 (new Test("con002")).ok = (com.ibm.icu.math.BigDecimal.ONE.toString()).equals("1"); in diagconstructors()
414 (new Test("con003")).ok = (com.ibm.icu.math.BigDecimal.TEN.toString()).equals("10"); in diagconstructors()
420 …")).ok = ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("0"))).toString()).equals("0"); in diagconstructors()
421 …")).ok = ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("1"))).toString()).equals("1"); in diagconstructors()
422 …).ok = ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("10"))).toString()).equals("10"); in diagconstructors()
423 … = ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("1000"))).toString()).equals("1000"); in diagconstructors()
424 … = ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("10.0"))).toString()).equals("10.0"); in diagconstructors()
425 … = ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("10.1"))).toString()).equals("10.1"); in diagconstructors()
426 … = ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("-1.1"))).toString()).equals("-1.1"); in diagconstructors()
[all …]
/external/antlr/antlr-3.4/runtime/Python/tests/
Dt048rewrite.py28 result = tokens.toString()
37 result = tokens.toString()
47 result = tokens.toString()
56 result = tokens.toString()
65 result = tokens.toString()
74 result = tokens.toString()
84 result = tokens.toString()
95 result = tokens.toString()
105 result = tokens.toString()
115 tokens.toString()
[all …]
/external/guava/guava-tests/test/com/google/common/base/
DToStringHelperTest.java38 String toTest = Objects.toStringHelper(this).toString(); in testConstructor_instance()
43 String toTest = Objects.toStringHelper(this).toString(); in testConstructorLenient_instance()
49 String toTest = Objects.toStringHelper(new TestClass()).toString(); in testConstructor_innerClass()
54 String toTest = Objects.toStringHelper(new TestClass()).toString(); in testConstructorLenient_innerClass()
60 String toTest = Objects.toStringHelper(new Object() {}).toString(); in testConstructor_anonymousClass()
65 String toTest = Objects.toStringHelper(new Object() {}).toString(); in testConstructorLenient_anonymousClass()
71 String toTest = Objects.toStringHelper(TestClass.class).toString(); in testConstructor_classObject()
76 String toTest = Objects.toStringHelper(TestClass.class).toString(); in testConstructorLenient_classObject()
81 String toTest = Objects.toStringHelper("FooBar").toString(); in testConstructor_stringObject()
89 String toTest = Objects.toStringHelper(new LocalInnerClass()).toString(); in testToStringHelper_localInnerClass()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleMatcherTest.java45 assertEquals("en_GB", matcher.getBestMatch("en_NZ").toString()); in testenGB()
46 assertEquals("es", matcher.getBestMatch("es_ES").toString()); in testenGB()
47 assertEquals("es_419", matcher.getBestMatch("es_AR").toString()); in testenGB()
48 assertEquals("es_MX", matcher.getBestMatch("es_MX").toString()); in testenGB()
54 assertEquals("hi", matcher.getBestMatch("sa").toString()); in testFallbacks()
63 logln(localeMatcherData.toString()); in testOverrideData()
71 logln(matcher.toString()); in testOverrideData()
80 logln(matcher.toString()); in testBasics()
119 logln(matcher.toString()); in TestLocaleMatcherCoverage()
181 assertEquals("en_Latn_US", matcher.getBestMatch("en_GB_oed").toString()); in testMatchGrandfatheredCode()
[all …]
DRegionTest.java345 … errln("Numeric code mismatch for region " + r.toString() + ". Expected: " + e + " Got:" + n); in TestKnownRegions()
348 …errln("Expected region " + r.toString() + " to be of type " + rd[3] + ". Got:" + r.getType().toStr… in TestKnownRegions()
354 …errln("Creating region " + r.toString() + " by its numeric code returned a different region. Got: … in TestKnownRegions()
395 if ( !expectedID.equals(r.toString())) { in TestGetInstanceString()
396 …D for Region.getInstance(\"" + inputID + "\"); Expected: " + expectedID + " Got: " + r.toString()); in TestGetInstanceString()
425 if ( !expectedID.equals(r.toString())) { in TestGetInstanceInt()
426 …on ID for Region.getInstance(" + inputID + "); Expected: " + expectedID + " Got: " + r.toString()); in TestGetInstanceInt()
445 …errln("Region: " + r.toString() + " contains region: " + cr.toString() + ". Expected containing re… in TestGetContainedRegions()
446 … ( cr.getContainingRegion() == null ? "NULL" : cr.getContainingRegion().toString())); in TestGetContainedRegions()
465 …errln("Continent: " + r.toString() + " contains territory: " + cr.toString() + ". Expected contain… in TestGetContainedRegionsWithType()
[all …]
DLocaleDataTest.java50 if(fullLoc.toString().indexOf("_BZ") >= 0 || fullLoc.toString().indexOf("_CA") >= 0 || in TestPaperSize()
51 … fullLoc.toString().indexOf("_CL") >= 0 || fullLoc.toString().indexOf("_CO") >= 0 || in TestPaperSize()
52 … fullLoc.toString().indexOf("_CR") >= 0 || fullLoc.toString().indexOf("_GT") >= 0 || in TestPaperSize()
53 … fullLoc.toString().indexOf("_MX") >= 0 || fullLoc.toString().indexOf("_NI") >= 0 || in TestPaperSize()
54 … fullLoc.toString().indexOf("_PA") >= 0 || fullLoc.toString().indexOf("_PH") >= 0 || in TestPaperSize()
55 … fullLoc.toString().indexOf("_PR") >= 0 || fullLoc.toString().indexOf("_SV") >= 0 || in TestPaperSize()
56 … fullLoc.toString().indexOf("_US") >= 0 || fullLoc.toString().indexOf("_VE") >= 0 ){ in TestPaperSize()
87 …if(fullLoc.toString().indexOf("_US") >= 0 || fullLoc.toString().indexOf("_MM") >= 0 || fullLoc.toS… in TestMeasurementSystem()
93 } else if(fullLoc.toString().indexOf("_GB") >= 0){ in TestMeasurementSystem()
174 if(locale.toString().indexOf(("in"))<0){ in TestExemplarSet()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/
DTestIDNA.java82 if(expected!=null && out != null && !out.toString().equals(expected)){ in doTestToUnicode()
91 …nicode did not get the expected exception for source: " + prettify(src) +" Got: "+ ex.toString()); in doTestToUnicode()
97 if(expected!=null && out != null && !out.toString().equals(expected)){ in doTestToUnicode()
106 …nicode did not get the expected exception for source: " + prettify(src) +" Got: "+ ex.toString()); in doTestToUnicode()
112 if(expected!=null && out != null && !out.toString().equals(expected)){ in doTestToUnicode()
121 …errln("Did not get the expected exception for source: " + prettify(src) +" Got: "+ ex.toString()); in doTestToUnicode()
133 if(expected!=null && out != null && !out.toString().equals(expected)){ in doTestIDNToUnicode()
142 …"convertToUnicode did not get the expected exception for source: " +src +" Got: "+ ex.toString()); in doTestIDNToUnicode()
147 if(expected!=null && out != null && !out.toString().equals(expected)){ in doTestIDNToUnicode()
156 …"convertToUnicode did not get the expected exception for source: " +src +" Got: "+ ex.toString()); in doTestIDNToUnicode()
[all …]
DTestIDNARef.java112 if(expected!=null && out != null && !out.toString().equals(expected)){ in doTestToUnicode()
121 …nicode did not get the expected exception for source: " + prettify(src) +" Got: "+ ex.toString()); in doTestToUnicode()
127 if(expected!=null && out != null && !out.toString().equals(expected)){ in doTestToUnicode()
136 …nicode did not get the expected exception for source: " + prettify(src) +" Got: "+ ex.toString()); in doTestToUnicode()
142 if(expected!=null && out != null && !out.toString().equals(expected)){ in doTestToUnicode()
151 …errln("Did not get the expected exception for source: " + prettify(src) +" Got: "+ ex.toString()); in doTestToUnicode()
169 if(expected!=null && out != null && !out.toString().equals(expected)){ in doTestIDNToUnicode()
178 …"convertToUnicode did not get the expected exception for source: " +src +" Got: "+ ex.toString()); in doTestIDNToUnicode()
183 if(expected!=null && out != null && !out.toString().equals(expected)){ in doTestIDNToUnicode()
192 …"convertToUnicode did not get the expected exception for source: " +src +" Got: "+ ex.toString()); in doTestIDNToUnicode()
[all …]
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestTreeIterator.java45 StringBuffer buf = toString(it); in testNode()
47 String found = buf.toString(); in testNode()
56 StringBuffer buf = toString(it); in testFlatAB()
58 String found = buf.toString(); in testFlatAB()
67 StringBuffer buf = toString(it); in testAB()
69 String found = buf.toString(); in testAB()
78 StringBuffer buf = toString(it); in testABC()
80 String found = buf.toString(); in testABC()
89 StringBuffer buf = toString(it); in testVerticalList()
91 String found = buf.toString(); in testVerticalList()
[all …]
/external/doclava/src/com/google/doclava/
DInfoBuilder.java58 public String toString() { in toString() method in InfoBuilder
113 System.out.print("Class: " + cl.toString()); in printClassInfo()
344 String payload = tree.payload.toString(); in parseFile()
396 if (child.payload != null && "qualifiedName".equals(child.payload.toString())) { in buildPackage()
416 packageName.append(tree.getChild(j).toString()); in buildQualifiedName()
419 return packageName.toString(); in buildQualifiedName()
430 String part = tree.getChild(i).toString(); in buildImport()
440 return theImport.toString(); in buildImport()
474 if ("typeParameters".equals(child.toString())) { in buildClass()
481 if ("extends".equals(child.toString())) { in buildClass()
[all …]
/external/skia/src/utils/
DSkDumpCanvas.cpp29 static void toString(const SkRect& r, SkString* str) { in toString() function
35 static void toString(const SkIRect& r, SkString* str) { in toString() function
39 static void toString(const SkRRect& rrect, SkString* str) { in toString() function
95 static void toString(const SkPath& path, SkString* str) { in toString() function
99 toString(path.getBounds(), str); in toString()
110 static const char* toString(SkRegion::Op op) { in toString() function
117 static void toString(const SkRegion& rgn, SkString* str) { in toString() function
119 toString(rgn.getBounds(), str); in toString()
126 static const char* toString(SkCanvas::VertexMode vm) { in toString() function
133 static const char* toString(SkCanvas::PointMode pm) { in toString() function
[all …]
/external/guava/guava/src/com/google/common/hash/
DMessageDigestHashFunction.java37 private final String toString; field in MessageDigestHashFunction
39 MessageDigestHashFunction(String algorithmName, String toString) { in MessageDigestHashFunction() argument
42 this.toString = checkNotNull(toString); in MessageDigestHashFunction()
46 MessageDigestHashFunction(String algorithmName, int bytes, String toString) { in MessageDigestHashFunction() argument
47 this.toString = checkNotNull(toString); in MessageDigestHashFunction()
69 @Override public String toString() { in toString() method in MessageDigestHashFunction
70 return toString; in toString()
95 private final String toString; field in MessageDigestHashFunction.SerializedForm
97 private SerializedForm(String algorithmName, int bytes, String toString) { in SerializedForm() argument
100 this.toString = toString; in SerializedForm()
[all …]

12345678910>>...136