-
Notifications
You must be signed in to change notification settings - Fork 132
Provide different tests for JSON output #44
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7ccd24a
json: add tests for basic data types
linev 8461904
json: add testing for string types
linev 013d483
json: add objects as members testing
linev 7cb397c
json: add tests for STL containers
linev 682fd40
json: add test for kStreamerLoop members
linev aefb49d
json: add example with simple inheritance
linev 6df8180
json: add tests for basic ROOT classes like TList or TClonesArray
linev da2f2e7
json: use destructor in basic types testing, delete allocated arrays
linev 189e326
json: provide correct copy constructor for TJsonEx3
linev 61a1453
json: improve Makefile to run tests in parallel jobs
linev 7f5db04
json: use nullptr in test classes
linev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
|
|
||
| Processing runBasicTypes.C... | ||
| ====== basic data types TJsonEx1 ===== | ||
| { | ||
| "_typename" : "TJsonEx1", | ||
| "fBool" : false, | ||
| "fChar" : 67, | ||
| "fShort" : 123, | ||
| "fInt" : 123456, | ||
| "fLong" : 7654321, | ||
| "fFloat" : 1.2, | ||
| "fDouble" : 3.8 | ||
| } | ||
|
|
||
| ====== inheritance from TJsonEx1, TJsonEx11 ===== | ||
| { | ||
| "_typename" : "TJsonEx11", | ||
| "fBool" : false, | ||
| "fChar" : 67, | ||
| "fShort" : 123, | ||
| "fInt" : 123456, | ||
| "fLong" : 7654321, | ||
| "fFloat" : 1.2, | ||
| "fDouble" : 3.8, | ||
| "fInt2" : 22 | ||
| } | ||
|
|
||
| ====== arrays of basic data types TJsonEx2 ===== | ||
| { | ||
| "_typename" : "TJsonEx2", | ||
| "fTest1" : [11111, 22222, 33333, 44444], | ||
| "fTest2" : [[1, 2], [3, 4]], | ||
| "fBool" : [[[false, false, false, false], [true, true, true, true], [false, false, false, false]], [[true, true, true, true], [false, false, false, false], [true, true, true, true]]], | ||
| "fChar" : [["0123", "1234", "2345"], ["1234", "2345", "3456"]], | ||
| "fShort" : [[[0, 1, 2, 3], [1, 2, 3, 4], [2, 3, 4, 5]], [[1, 2, 3, 4], [2, 3, 4, 5], [3, 4, 5, 6]]], | ||
| "fInt" : [[[0, 1, 2, 3], [0, 1, 2, 3], [0, 1, 2, 3]], [[0, 1, 2, 3], [1, 2, 3, 4], [2, 3, 4, 5]]], | ||
| "fLong" : [[[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]], [[0, 0, 0, 0], [0, 1, 2, 3], [0, 2, 4, 6]]], | ||
| "fFloat" : [[[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]], [[0, 0, 0, 0], [0, 1, 2, 3], [0, 2, 4, 6]]], | ||
| "fDouble" : [[[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]], [[0, 0, 0, 0], [0, 1, 2, 3], [0, 2, 4, 6]]] | ||
| } | ||
|
|
||
| ====== dinamin arrays of basic data types TJsonEx3 ===== | ||
| { | ||
| "_typename" : "TJsonEx3", | ||
| "fSize" : 5, | ||
| "fBool" : [false, false, false, false, false], | ||
| "fChar" : "12345", | ||
| "fShort" : [0, 2, 4, 6, 8], | ||
| "fInt" : [0, 5, 10, 15, 20], | ||
| "fLong" : [0, 123, 246, 369, 492], | ||
| "fFloat" : [0, 3, 6, 9, 12], | ||
| "fDouble" : [0, 7, 14, 21, 28] | ||
| } | ||
|
|
||
| ============ selected data members ======== | ||
| ex2.fInt = [[[0, 1, 2, 3], [0, 1, 2, 3], [0, 1, 2, 3]], [[0, 1, 2, 3], [1, 2, 3, 4], [2, 3, 4, 5]]] | ||
| ex3.fChar = "12345" | ||
| ex3.fLong = [0, 123, 246, 369, 492] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add
for all the cases that uses test_classes.h+ to allow for parallel builds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I add correspondent rule in Makefile