Home
last modified time | relevance | path

Searched refs:stringify (Results 1 – 25 of 75) sorted by relevance

123

/external/catch2/projects/SelfTest/UsageTests/
DToStringVector.tests.cpp9 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" );
11 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" );
13 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" );
19 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" );
21 REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\" }" );
23 REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }" );
53 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" );
55 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" );
57 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" );
64 REQUIRE( ::Catch::Detail::stringify(v) == "{ }" );
[all …]
DToStringVariant.tests.cpp24 CHECK( "{ }" == ::Catch::Detail::stringify(type{}) );
26 CHECK( "{ }" == ::Catch::Detail::stringify(value) );
27 CHECK( "{ }" == ::Catch::Detail::stringify(std::get<0>(value)) );
33 CHECK( "0" == ::Catch::Detail::stringify(type{0}) );
39 CHECK( "0.5f" == ::Catch::Detail::stringify(type{0.5f}) );
40 CHECK( "0" == ::Catch::Detail::stringify(type{0}) );
49 CHECK("{valueless variant}" == ::Catch::Detail::stringify(value));
56 CHECK( "\"foo\"" == ::Catch::Detail::stringify(type{"foo"}) );
57 CHECK( "0" == ::Catch::Detail::stringify(type{0}) );
64 CHECK( "0.5f" == ::Catch::Detail::stringify(type{0.5f}) );
[all …]
DToStringGeneral.tests.cpp63 REQUIRE( Catch::Detail::stringify( emptyMap ) == "{ }" );
69 REQUIRE( Catch::Detail::stringify( map ) == "{ { \"one\", 1 } }" );
79 …REQUIRE( Catch::Detail::stringify( map ) == "{ { \"abc\", 1 }, { \"def\", 2 }, { \"ghi\", 3 } }" );
88 REQUIRE( Catch::Detail::stringify( emptySet ) == "{ }" );
94 REQUIRE( Catch::Detail::stringify( set ) == "{ \"one\" }" );
100 REQUIRE( Catch::Detail::stringify( set ) == "{ \"abc\", \"def\", \"ghi\" }" );
107 REQUIRE(Catch::Detail::stringify(singular) == "{ 1 }");
111 REQUIRE(Catch::Detail::stringify(arr) == "{ 3, 2, 1 }");
115 … REQUIRE(Catch::Detail::stringify(arr) == R"({ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } })");
123 CHECK(Catch::Detail::stringify(view) == R"("abc")");
[all …]
DToStringWhich.tests.cpp71 REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_operator )" );
77 REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker>" );
83 REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker_and_operator>" );
88 REQUIRE( ::Catch::Detail::stringify(item) == "{ !!! }" );
94 REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_template_operator )" );
102 REQUIRE( ::Catch::Detail::stringify( v ) == "{ operator<<( has_operator ) }" );
107 REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker> }" );
112 REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker_and_operator> }" );
189 REQUIRE(::Catch::Detail::stringify(streamable_range{}) == "op<<(streamable_range)");
190 REQUIRE(::Catch::Detail::stringify(stringmaker_range{}) == "stringmaker(streamable_range)");
[all …]
DEnumToString.tests.cpp18 CHECK( ::Catch::Detail::stringify(e0) == "0" );
20 CHECK( ::Catch::Detail::stringify(e1) == "1" );
25 CHECK( ::Catch::Detail::stringify(e0) == "E2{0}" );
27 CHECK( ::Catch::Detail::stringify(e1) == "E2{1}" );
52 CHECK( ::Catch::Detail::stringify(e0) == "0" );
54 CHECK( ::Catch::Detail::stringify(e1) == "1" );
60 CHECK( ::Catch::Detail::stringify(e0) == "E2/V0" );
62 CHECK( ::Catch::Detail::stringify(e1) == "E2/V1" );
65 CHECK( ::Catch::Detail::stringify(e3) == "Unknown enum value 10" );
DToStringTuple.tests.cpp9 CHECK( "{ }" == ::Catch::Detail::stringify(type{}) );
11 CHECK( "{ }" == ::Catch::Detail::stringify(value) );
17 CHECK( "{ 0 }" == ::Catch::Detail::stringify(type{0}) );
24 CHECK( "1.2f" == ::Catch::Detail::stringify(float(1.2)) );
25 CHECK( "{ 1.2f, 0 }" == ::Catch::Detail::stringify(type{1.2f,0}) );
31 CHECK( "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"}) );
38 CHECK( "{ { 42 }, { }, 1.2f }" == ::Catch::Detail::stringify(value) );
45 CHECK( "{ nullptr, 42, \"Catch me\" }" == ::Catch::Detail::stringify(value) );
DToStringOptional.tests.cpp8 REQUIRE( "{ }" == ::Catch::Detail::stringify( type{} ) );
9 REQUIRE( "0" == ::Catch::Detail::stringify( type{ 0 } ) );
14 REQUIRE( "{ }" == ::Catch::Detail::stringify( type{} ) );
15 REQUIRE( "\"abc\"" == ::Catch::Detail::stringify( type{ "abc" } ) );
20 REQUIRE( "{ 0, { }, 2 }" == ::Catch::Detail::stringify( type{ 0, {}, 2 } ) );
DToStringPair.tests.cpp6 REQUIRE( ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }" );
11 REQUIRE( ::Catch::Detail::stringify(value) == "{ 34, \"xyzzy\" }" );
17 REQUIRE( ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }" );
29 REQUIRE( ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" );
DMisc.tests.cpp348 std::string result = ::Catch::Detail::stringify( s );
354 std::string result = ::Catch::Detail::stringify( s );
360 std::string result = ::Catch::Detail::stringify( s );
366 std::string result = ::Catch::Detail::stringify( s );
/external/catch2/include/internal/
Dcatch_tostring.cpp122 return ::Catch::Detail::stringify(std::string{ str }); in convert()
128 return ::Catch::Detail::stringify(std::string{ str }); in convert()
135 return ::Catch::Detail::stringify(std::string{ str }); in convert()
148 return ::Catch::Detail::stringify(s); in convert()
159 return ::Catch::Detail::stringify(std::wstring{ str }); in convert()
166 return ::Catch::Detail::stringify(std::wstring{ str }); in convert()
175 return ::Catch::Detail::stringify(static_cast<long long>(value)); in convert()
178 return ::Catch::Detail::stringify(static_cast<long long>(value)); in convert()
190 return ::Catch::Detail::stringify(static_cast<unsigned long long>(value)); in convert()
193 return ::Catch::Detail::stringify(static_cast<unsigned long long>(value)); in convert()
[all …]
Dcatch_tostring.h127 std::string stringify(const T& e) { in stringify() function
133 … return ::Catch::Detail::stringify(static_cast<typename std::underlying_type<E>::type>(e)); in convertUnknownEnumToString()
138 std::string stringify( T^ e ) {
196 return ::Catch::Detail::stringify(std::string{ str });
202 return ::Catch::Detail::stringify(std::string{ reinterpret_cast<char const *>(str) });
208 return ::Catch::Detail::stringify(std::string{ reinterpret_cast<char const *>(str) });
307 rss << ::Catch::Detail::stringify(*first);
309 rss << ", " << ::Catch::Detail::stringify(*first);
328 return ::Catch::Detail::stringify([nsObject description]);
333 inline std::string stringify( NSString* nsstring ) {
[all …]
Dcatch_matchers_vector.h56 return "Contains: " + ::Catch::Detail::stringify( m_comparator ); in describe()
86 return "Contains: " + ::Catch::Detail::stringify( m_comparator ); in describe()
110 return "Equals: " + ::Catch::Detail::stringify( m_comparator ); in describe()
149 return "UnorderedEquals: " + ::Catch::Detail::stringify(m_target); in describe()
Dcatch_matchers_floating.cpp96 …return "is within " + ::Catch::Detail::stringify(m_margin) + " of " + ::Catch::Detail::stringify(m… in describe()
128 …return "is within " + Catch::to_string(m_ulps) + " ULPs of " + ::Catch::Detail::stringify(m_target… in describe()
Dcatch_objc.hpp135 return "equals string: " + Catch::Detail::stringify( m_substr ); in describe()
148 return "contains string: " + Catch::Detail::stringify( m_substr ); in describe()
161 return "starts with: " + Catch::Detail::stringify( m_substr ); in describe()
173 return "ends with: " + Catch::Detail::stringify( m_substr ); in describe()
Dcatch_message.h87 captureValue( index, Catch::Detail::stringify( value ) ); in captureValues()
92 captureValue( index, Catch::Detail::stringify(value) ); in captureValues()
Dcatch_decomposer.h57 … ( os, Catch::Detail::stringify( m_lhs ), m_op, Catch::Detail::stringify( m_rhs ) ); in streamReconstructedExpression()
130 os << Catch::Detail::stringify( m_lhs ); in streamReconstructedExpression()
Dcatch_exception_translator_registry.cpp36 return Catch::Detail::stringify( [exception description] ); in translateActiveException()
/external/junit-params/src/test/java/junitparams/
DObjectStringificationTest.java19 assertThat(stringify("exampleName", 0)).isEqualTo("[0] exampleName"); in stringifyString()
26 assertThat(stringify(obj, 0)).isEqualTo("[0] exampleName"); in stringifyClassWithToStringAndOneParam()
34 assertThat(stringify(new Object[]{obj1, obj2}, 0)).isEqualTo("[0] one, two"); in stringifyClassWithToStringAndManyParams()
41 assertThat(Utils.stringify(obj, 0)).isEqualTo("[0] exampleName"); in stringifyClassWithToStringInSuperclass()
66 …assertThat(Utils.stringify(mixed)).isEqualTo("null, stringOne, [1, 2, 3], stringTwo, [one, two, nu… in stringifyArray()
/external/autotest/client/site_tests/power_LoadTest/extension/
Dtest.js50 console.log(JSON.stringify(page_timestamps_recorder));
106 console.log(JSON.stringify(page_timestamps));
165 console.log(JSON.stringify(page_timestamps_recorder));
216 console.log(JSON.stringify(page_timestamps_recorder));
224 console.log(JSON.stringify("page_timestamps:"));
225 console.log(JSON.stringify(page_timestamps));
275 post.push(key + "=" + JSON.stringify(item));
/external/bcc/src/lua/bcc/vendor/
Djson.lua117 function json.stringify(obj, as_key) function
125 s[#s + 1] = json.stringify(val)
133 s[#s + 1] = json.stringify(k, true)
135 s[#s + 1] = json.stringify(v)
/external/junit-params/src/main/java/junitparams/internal/
DUtils.java15 public static String stringify(Object paramSet, int paramIdx) { in stringify() method in Utils
18 return result + stringify(paramSet); in stringify()
21 public static String stringify(Object paramSet) { in stringify() method in Utils
133 return stringify(paramSet, index) + " (" + methodName + ")"; in uniqueMethodId()
/external/swiftshader/third_party/LLVM/lib/MC/MCDisassembler/
DEDInst.cpp59 int EDInst::stringify() { in stringify() function in EDInst
72 if (stringify()) in getString()
172 if (stringify()) in tokenize()
/external/catch2/projects/SelfTest/Baselines/
Dcompact.sw.approved.txt326 ToStringGeneral.tests.cpp:<line number>: passed: ::Catch::Detail::stringify(WhatException{}) == "Th…
329 ToStringGeneral.tests.cpp:<line number>: passed: ::Catch::Detail::stringify(OperatorException{}) ==…
330 ToStringGeneral.tests.cpp:<line number>: passed: ::Catch::Detail::stringify(StringMakerException{})…
921 ToStringGeneral.tests.cpp:<line number>: passed: Catch::Detail::stringify(singular) == "{ 1 }" for:…
922 ToStringGeneral.tests.cpp:<line number>: passed: Catch::Detail::stringify(arr) == "{ 3, 2, 1 }" for…
923 ToStringGeneral.tests.cpp:<line number>: passed: Catch::Detail::stringify(arr) == R"({ { "1:1", "1:…
1262 ToStringVector.tests.cpp:<line number>: passed: Catch::Detail::stringify( empty ) == "{ }" for: "{…
1263 ToStringVector.tests.cpp:<line number>: passed: Catch::Detail::stringify( oneValue ) == "{ 42 }" fo…
1264 ToStringVector.tests.cpp:<line number>: passed: Catch::Detail::stringify( twoValues ) == "{ 42, 250…
1327 ToStringPair.tests.cpp:<line number>: passed: ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arth…
[all …]
Dconsole.sw.approved.txt1775 Capture should stringify like assertions
1787 Info should NOT stringify the way assertions do
2393 …REQUIRE( ::Catch::Detail::stringify(WhatException{}) == "This exception has overriden what() metho…
2400 REQUIRE( ::Catch::Detail::stringify(OperatorException{}) == "OperatorException" )
2405 REQUIRE( ::Catch::Detail::stringify(StringMakerException{}) == "StringMakerException" )
6721 REQUIRE( Catch::Detail::stringify(singular) == "{ 1 }" )
6733 REQUIRE( Catch::Detail::stringify(arr) == "{ 3, 2, 1 }" )
6745 REQUIRE( Catch::Detail::stringify(arr) == R"({ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } })" )
9161 REQUIRE( Catch::Detail::stringify( empty ) == "{ }" )
9166 REQUIRE( Catch::Detail::stringify( oneValue ) == "{ 42 }" )
[all …]
/external/u-boot/arch/powerpc/include/asm/
Dprocessor.h1137 #define stringify(s) tostring(s) macro
1141 asm volatile("mfdcr %0," stringify(rn) \
1143 #define mtdcr(rn, v) asm volatile("mtdcr " stringify(rn) ",%0" : : "r" (v))
1150 asm volatile("mfspr %0," stringify(rn) \
1152 #define mtspr(rn, v) asm volatile("mtspr " stringify(rn) ",%0" : : "r" (v))

123