Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added initial implementation for tojson filter (#142) #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vvish
Copy link
Owner

@vvish vvish commented Oct 12, 2019

  • Implemented serialization to json based or rapidjson framework.

  • Added initial filter implementation + tests.

* Implemented serialization to json based or rapidjson framework.

* Added initial filter implementation + tests.
@vvish vvish marked this pull request as ready for review October 12, 2019 22:05
@vvish vvish requested a review from flexferrum October 13, 2019 19:04
@@ -193,7 +194,7 @@ if (JINJA2CPP_BUILD_TESTS)

CollectSources(TestSources TestHeaders ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/test)
add_executable(jinja2cpp_tests ${TestSources} ${TestHeaders})
target_link_libraries(jinja2cpp_tests gtest gtest_main nlohmann_json ${LIB_TARGET_NAME} ${EXTRA_TEST_LIBS} )
target_link_libraries(jinja2cpp_tests gtest gtest_main nlohmann_json ${LIB_TARGET_NAME} ${EXTRA_TEST_LIBS} ${JINJA2CPP_PRIVATE_LIBS})
Copy link
Collaborator

@flexferrum flexferrum Oct 14, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

По идее, он здесь должен эти либы из target_link_libraries Jinja2Cpp дёрнуть, как для буста. То есть явно прописывать зависимой цели с какими библиотеками линковаться - это не очень хорошо.

InputOutputPair{"'<bar>' | tojson", "\"\\u003cbar\\u003e\""}
));

struct ToJson : SubstitutionTestBase
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я думаю, эти тесты можно перетащить в rapid_json_serializer_test.cpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants