Skip to content

Commit c4f72b6

Browse files
committed
Revert "Use depth override"
This reverts commit 87d94c1.
1 parent 87d94c1 commit c4f72b6

3 files changed

Lines changed: 0 additions & 32 deletions

File tree

test/JsonataTest.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -423,19 +423,6 @@ JsonataTest::TestOverrides* JsonataTest::getTestOverrides() {
423423
to.alternateCode = alternateCodeIt->get<std::string>();
424424
}
425425

426-
// Optional depth override
427-
auto depthOverrideIt = overrideObj.find("depth");
428-
if (depthOverrideIt != overrideObj.end()) {
429-
const auto& d = *depthOverrideIt;
430-
if (d.is_number_float()) {
431-
to.overrideDepth = static_cast<int>(d.get<double>());
432-
} else if (d.is_number_integer()) {
433-
to.overrideDepth = static_cast<int>(d.get<long long>());
434-
} else if (d.is_number_unsigned()) {
435-
to.overrideDepth = static_cast<int>(d.get<unsigned long long>());
436-
}
437-
}
438-
439426
auto reasonIt = overrideObj.find("reason");
440427
if (reasonIt != overrideObj.end() && reasonIt->is_string()) {
441428
to.reason = reasonIt->get<std::string>();
@@ -614,9 +601,6 @@ bool JsonataTest::runTestCase(const std::string& name, const std::map<std::strin
614601
if (to->alternateCode) {
615602
code = *to->alternateCode;
616603
}
617-
if (to->overrideDepth) {
618-
depth = *to->overrideDepth;
619-
}
620604
}
621605

622606
bool res;

test/JsonataTest.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class JsonataTest : public ::testing::Test {
1818
std::optional<bool> ignoreError;
1919
std::optional<nlohmann::ordered_json> alternateResult;
2020
std::optional<std::string> alternateCode;
21-
std::optional<int> overrideDepth;
2221
std::string reason;
2322
};
2423

test/test-overrides.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,6 @@
55
"ignoreError": true,
66
"reason": "timegm() cannot handle dates before 1900"
77
},
8-
{
9-
"name": "tail-recursion/case001.json",
10-
"depth": 202,
11-
"reason": "Windows has lower stack limit"
12-
},
13-
{
14-
"name": "tail-recursion/case002.json",
15-
"depth": 202,
16-
"reason": "Windows has lower stack limit"
17-
},
18-
{
19-
"name": "tail-recursion/case005.json",
20-
"depth": 200,
21-
"reason": "Windows has lower stack limit"
22-
},
238

249

2510
{

0 commit comments

Comments
 (0)