Skip to content

Commit 30757d2

Browse files
committed
wip: fixing up todo comments
1 parent eb46b25 commit 30757d2

File tree

6 files changed

+6
-57
lines changed

6 files changed

+6
-57
lines changed

Diff for: jsonld-cpp/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ set(LIB_SOURCE_FILES
5858
${CMAKE_CURRENT_SOURCE_DIR}/FileLoader.cpp
5959
${CMAKE_CURRENT_SOURCE_DIR}/JSONDocument.cpp
6060
${CMAKE_CURRENT_SOURCE_DIR}/JsonLdError.cpp
61-
${CMAKE_CURRENT_SOURCE_DIR}/JsonLdOptions.cpp
6261
${CMAKE_CURRENT_SOURCE_DIR}/JsonLdProcessor.cpp
6362
${CMAKE_CURRENT_SOURCE_DIR}/JsonLdUrl.cpp
6463
${CMAKE_CURRENT_SOURCE_DIR}/JsonLdUtils.cpp

Diff for: jsonld-cpp/ExpansionProcessor.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1342,9 +1342,9 @@ namespace {
13421342
JsonLdUtils::addValue(reverseMap, expandedProperty, item, true);
13431343
}
13441344
}
1345-
// 13.14)
1346-
// Otherwise, key is not a reverse property. Use add value to add expanded value to
1347-
// the expanded property entry in result using true for as array.
1345+
// 13.14)
1346+
// Otherwise, key is not a reverse property. Use add value to add expanded value to
1347+
// the expanded property entry in result using true for as array.
13481348
else {
13491349
JsonLdUtils::addValue(result, expandedProperty, expandedValue, true);
13501350
}

Diff for: jsonld-cpp/JsonLdOptions.cpp

-27
This file was deleted.

Diff for: jsonld-cpp/WellFormed.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
#include "jsonld-cpp/WellFormed.h"
2+
#include "jsonld-cpp/JsonLdUtils.h"
3+
#include "jsonld-cpp/RDFRegex.h"
14
#include <regex>
2-
#include "WellFormed.h"
3-
#include "JsonLdUtils.h"
4-
#include "RDFRegex.h"
55

66
bool WellFormed::iri(const std::string &str) {
77
return JsonLdUtils::isAbsoluteIri(str);

Diff for: jsonld-cpp/test/testjsonld-cpp/ManifestLoader.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,3 @@ std::map<std::string, TestCase> ManifestLoader::load() {
2323

2424
return result;
2525
}
26-
27-
// todo: make sure to clean up extra test files like duplicate_quads.nq ... what was that for?
28-
29-
// todo: also create a readme for what and how we updated the canonicalize tests when we go from 2015 to the new 1.0 spec

Diff for: jsonld-cpp/test/testjsonld-cpp/test_FileLoader.cpp

-19
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,3 @@ TEST(DocumentLoaderTest, process_duplicate_quads_when_reading) {
6565
EXPECT_EQ(expected.numTriples(), 2);
6666
}
6767

68-
69-
// todo: need to re-implement cache for these tests to be meaningful
70-
//TEST(DocumentLoaderTest, load_sample_document_from_cache) {
71-
// FileLoader dl;
72-
// dl.addDocumentToCache("foo.json", R"({ "pi": 3 })");
73-
//
74-
// RemoteDocument d = dl.loadDocument("foo.json");
75-
// EXPECT_EQ(3, d.getJSONContent()["pi"]);
76-
//}
77-
//
78-
//TEST(DocumentLoaderTest, load_document_from_cache_miss) {
79-
// FileLoader dl;
80-
// dl.addDocumentToCache("foo.json", R"({ "pi": 3 })");
81-
//
82-
// EXPECT_THROW(dl.loadDocument("bar.json"), std::runtime_error);
83-
//}
84-
85-
86-

0 commit comments

Comments
 (0)