Skip to content

Commit

Permalink
✅ add more comparison test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed May 6, 2024
1 parent 2be91d2 commit a3866a2
Showing 1 changed file with 227 additions and 0 deletions.
227 changes: 227 additions & 0 deletions tests/comparison/test_cases.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,232 @@
}
},
"encoded": "filters[$or][0][date][$eq]=2020-01-01&filters[$or][1][date][$eq]=2020-01-02&filters[author][name][$eq]=John Doe"
},
{
"data": {
"commentsEmbedResponse": [
{
"id": "1",
"post_id": "1",
"someId": "ma018-9ha12",
"text": "Hello",
"replies": [
{
"id": "3",
"comment_id": "1",
"someId": "ma020-9ha15",
"text": "Hello"
}
]
},
{
"id": "2",
"post_id": "1",
"someId": "mw012-7ha19",
"text": "How are you?",
"replies": [
{
"id": "4",
"comment_id": "2",
"someId": "mw023-9ha18",
"text": "Hello"
},
{
"id": "5",
"comment_id": "2",
"someId": "mw035-0ha22",
"text": "Hello"
}
]
}
]
},
"encoded": "commentsEmbedResponse[0][id]=1&commentsEmbedResponse[0][post_id]=1&commentsEmbedResponse[0][someId]=ma018-9ha12&commentsEmbedResponse[0][text]=Hello&commentsEmbedResponse[0][replies][0][id]=3&commentsEmbedResponse[0][replies][0][comment_id]=1&commentsEmbedResponse[0][replies][0][someId]=ma020-9ha15&commentsEmbedResponse[0][replies][0][text]=Hello&commentsEmbedResponse[1][id]=2&commentsEmbedResponse[1][post_id]=1&commentsEmbedResponse[1][someId]=mw012-7ha19&commentsEmbedResponse[1][text]=How are you?&commentsEmbedResponse[1][replies][0][id]=4&commentsEmbedResponse[1][replies][0][comment_id]=2&commentsEmbedResponse[1][replies][0][someId]=mw023-9ha18&commentsEmbedResponse[1][replies][0][text]=Hello&commentsEmbedResponse[1][replies][1][id]=5&commentsEmbedResponse[1][replies][1][comment_id]=2&commentsEmbedResponse[1][replies][1][someId]=mw035-0ha22&commentsEmbedResponse[1][replies][1][text]=Hello"
},
{
"data": {
"commentsResponse": [
{
"id": "1",
"post_id": "1",
"someId": "ma018-9ha12",
"text": "Hello",
"replies": [
{
"id": "3",
"comment_id": "1",
"someId": "ma020-9ha15",
"text": "Hello"
}
]
},
{
"id": "2",
"post_id": "1",
"someId": "mw012-7ha19",
"text": "How are you?",
"replies": [
{
"id": "4",
"comment_id": "2",
"someId": "mw023-9ha18",
"text": "Hello"
},
{
"id": "5",
"comment_id": "2",
"someId": "mw035-0ha22",
"text": "Hello"
}
]
}
]
},
"encoded": "commentsResponse[0][id]=1&commentsResponse[0][post_id]=1&commentsResponse[0][someId]=ma018-9ha12&commentsResponse[0][text]=Hello&commentsResponse[0][replies][0][id]=3&commentsResponse[0][replies][0][comment_id]=1&commentsResponse[0][replies][0][someId]=ma020-9ha15&commentsResponse[0][replies][0][text]=Hello&commentsResponse[1][id]=2&commentsResponse[1][post_id]=1&commentsResponse[1][someId]=mw012-7ha19&commentsResponse[1][text]=How are you?&commentsResponse[1][replies][0][id]=4&commentsResponse[1][replies][0][comment_id]=2&commentsResponse[1][replies][0][someId]=mw023-9ha18&commentsResponse[1][replies][0][text]=Hello&commentsResponse[1][replies][1][id]=5&commentsResponse[1][replies][1][comment_id]=2&commentsResponse[1][replies][1][someId]=mw035-0ha22&commentsResponse[1][replies][1][text]=Hello"
},
{
"data": {
"data": {
"id": "1",
"someId": "af621-4aa41",
"text": "Lorem Ipsum Dolor",
"user": {
"firstname": "John",
"lastname": "Doe",
"age": "25"
},
"relationships": {
"tags": {
"data": [
{
"name": "super"
},
{
"name": "awesome"
}
]
}
}
}
},
"encoded": "data[id]=1&data[someId]=af621-4aa41&data[text]=Lorem Ipsum Dolor&data[user][firstname]=John&data[user][lastname]=Doe&data[user][age]=25&data[relationships][tags][data][0][name]=super&data[relationships][tags][data][1][name]=awesome"
},
{
"data": {
"id": "1",
"someId": "af621-4aa41",
"text": "Lorem Ipsum Dolor",
"user": {
"firstname": "John",
"lastname": "Doe",
"age": "25"
},
"relationships": {
"tags": [
{
"name": "super"
},
{
"name": "awesome"
}
]
}
},
"encoded": "id=1&someId=af621-4aa41&text=Lorem Ipsum Dolor&user[firstname]=John&user[lastname]=Doe&user[age]=25&relationships[tags][0][name]=super&relationships[tags][1][name]=awesome"
},
{
"data": {
"postsResponse": [
{
"id": "1",
"someId": "du761-8bc98",
"text": "Lorem Ipsum Dolor",
"user": {
"firstname": "John",
"lastname": "Doe",
"age": "25"
},
"relationships": {
"tags": [
{
"name": "super"
},
{
"name": "awesome"
}
]
}
},
{
"id": "1",
"someId": "pa813-7jx02",
"text": "Lorem Ipsum Dolor",
"user": {
"firstname": "Mary",
"lastname": "Doe",
"age": "25"
},
"relationships": {
"tags": [
{
"name": "super"
},
{
"name": "awesome"
}
]
}
}
]
},
"encoded": "postsResponse[0][id]=1&postsResponse[0][someId]=du761-8bc98&postsResponse[0][text]=Lorem Ipsum Dolor&postsResponse[0][user][firstname]=John&postsResponse[0][user][lastname]=Doe&postsResponse[0][user][age]=25&postsResponse[0][relationships][tags][0][name]=super&postsResponse[0][relationships][tags][1][name]=awesome&postsResponse[1][id]=1&postsResponse[1][someId]=pa813-7jx02&postsResponse[1][text]=Lorem Ipsum Dolor&postsResponse[1][user][firstname]=Mary&postsResponse[1][user][lastname]=Doe&postsResponse[1][user][age]=25&postsResponse[1][relationships][tags][0][name]=super&postsResponse[1][relationships][tags][1][name]=awesome"
},
{
"data": {
"posts": [
{
"id": "1",
"someId": "du761-8bc98",
"text": "Lorem Ipsum Dolor",
"user": {
"firstname": "John",
"lastname": "Doe",
"age": "25"
},
"relationships": {
"tags": [
{
"name": "super"
},
{
"name": "awesome"
}
]
}
},
{
"id": "1",
"someId": "pa813-7jx02",
"text": "Lorem Ipsum Dolor",
"user": {
"firstname": "Mary",
"lastname": "Doe",
"age": "25"
},
"relationships": {
"tags": [
{
"name": "super"
},
{
"name": "awesome"
}
]
}
}
],
"total": "2"
},
"encoded": "posts[0][id]=1&posts[0][someId]=du761-8bc98&posts[0][text]=Lorem Ipsum Dolor&posts[0][user][firstname]=John&posts[0][user][lastname]=Doe&posts[0][user][age]=25&posts[0][relationships][tags][0][name]=super&posts[0][relationships][tags][1][name]=awesome&posts[1][id]=1&posts[1][someId]=pa813-7jx02&posts[1][text]=Lorem Ipsum Dolor&posts[1][user][firstname]=Mary&posts[1][user][lastname]=Doe&posts[1][user][age]=25&posts[1][relationships][tags][0][name]=super&posts[1][relationships][tags][1][name]=awesome&total=2"
}
]

0 comments on commit a3866a2

Please sign in to comment.