MCPcopy Create free account
hub / github.com/apache/arrow / TestInvalidInput

Method TestInvalidInput

cpp/src/arrow/util/decimal_test.cc:135–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 }
134
135 void TestInvalidInput() {
136 for (const std::string invalid_value :
137 {"-", "0.0.0", "0-13-32", "a", "-23092.235-", "-+23092.235", "+-23092.235",
138 "00a", "1e1a", "0.00123D/3", "1.23eA8", "1.23E+3A", "-1.23E--5", "1.2345E+++07",
139 "0E-2147483648", "1.0E-2147483647"}) {
140 ARROW_SCOPED_TRACE("invalid_value = '", invalid_value, "'");
141 ASSERT_RAISES(Invalid, DecimalType::FromString(invalid_value));
142 }
143 }
144
145 void TestLeadingZerosNoDecimalPoint() {
146 AssertDecimalFromString("0000000", DecimalType(0), 0, 0);

Callers 1

TYPED_TESTFunction · 0.80

Calls 1

FromStringFunction · 0.85

Tested by

no test coverage detected