110 lines
3.4 KiB
Plaintext
110 lines
3.4 KiB
Plaintext
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.43s
|
|
Running unittests src/lib.rs (target/debug/deps/jspg-d3f18ff3a7e2b386)
|
|
|
|
running 1 test
|
|
test tests::test_filter_0_0 ... FAILED
|
|
|
|
failures:
|
|
|
|
---- tests::test_filter_0_0 stdout ----
|
|
TEST COMPILE ERROR FOR 'Assert filter generation map accurately represents strongly typed conditions natively.': Detailed Schema Match Failure for 'gender.condition'!
|
|
|
|
Expected:
|
|
{
|
|
"compiledPropertyNames": [
|
|
"$eq",
|
|
"$ne",
|
|
"$nof",
|
|
"$of"
|
|
],
|
|
"properties": {
|
|
"$eq": {
|
|
"type": [
|
|
"gender",
|
|
"null"
|
|
]
|
|
},
|
|
"$ne": {
|
|
"type": [
|
|
"gender",
|
|
"null"
|
|
]
|
|
},
|
|
"$nof": {
|
|
"items": {
|
|
"type": "gender"
|
|
},
|
|
"type": [
|
|
"array",
|
|
"null"
|
|
]
|
|
},
|
|
"$of": {
|
|
"items": {
|
|
"type": "gender"
|
|
},
|
|
"type": [
|
|
"array",
|
|
"null"
|
|
]
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
|
|
Actual:
|
|
{
|
|
"compiledPropertyNames": [
|
|
"$eq",
|
|
"$ne",
|
|
"$nof",
|
|
"$of",
|
|
"kind"
|
|
],
|
|
"properties": {
|
|
"$eq": {
|
|
"type": [
|
|
"gender",
|
|
"null"
|
|
]
|
|
},
|
|
"$ne": {
|
|
"type": [
|
|
"gender",
|
|
"null"
|
|
]
|
|
},
|
|
"$nof": {
|
|
"items": {
|
|
"type": "gender"
|
|
},
|
|
"type": [
|
|
"array",
|
|
"null"
|
|
]
|
|
},
|
|
"$of": {
|
|
"items": {
|
|
"type": "gender"
|
|
},
|
|
"type": [
|
|
"array",
|
|
"null"
|
|
]
|
|
}
|
|
},
|
|
"type": "condition"
|
|
}
|
|
|
|
thread 'tests::test_filter_0_0' (118346550) panicked at src/tests/fixtures.rs:539:54:
|
|
called `Result::unwrap()` on an `Err` value: "[Filter Synthesis Object-Oriented Composition] Compile Test 'Assert filter generation map accurately represents strongly typed conditions natively.' failed. Error: Detailed Schema Match Failure for 'gender.condition'!\n\nExpected:\n{\n \"compiledPropertyNames\": [\n \"$eq\",\n \"$ne\",\n \"$nof\",\n \"$of\"\n ],\n \"properties\": {\n \"$eq\": {\n \"type\": [\n \"gender\",\n \"null\"\n ]\n },\n \"$ne\": {\n \"type\": [\n \"gender\",\n \"null\"\n ]\n },\n \"$nof\": {\n \"items\": {\n \"type\": \"gender\"\n },\n \"type\": [\n \"array\",\n \"null\"\n ]\n },\n \"$of\": {\n \"items\": {\n \"type\": \"gender\"\n },\n \"type\": [\n \"array\",\n \"null\"\n ]\n }\n },\n \"type\": \"object\"\n}\n\nActual:\n{\n \"compiledPropertyNames\": [\n \"$eq\",\n \"$ne\",\n \"$nof\",\n \"$of\",\n \"kind\"\n ],\n \"properties\": {\n \"$eq\": {\n \"type\": [\n \"gender\",\n \"null\"\n ]\n },\n \"$ne\": {\n \"type\": [\n \"gender\",\n \"null\"\n ]\n },\n \"$nof\": {\n \"items\": {\n \"type\": \"gender\"\n },\n \"type\": [\n \"array\",\n \"null\"\n ]\n },\n \"$of\": {\n \"items\": {\n \"type\": \"gender\"\n },\n \"type\": [\n \"array\",\n \"null\"\n ]\n }\n },\n \"type\": \"condition\"\n}"
|
|
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
|
|
|
|
|
failures:
|
|
tests::test_filter_0_0
|
|
|
|
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 1362 filtered out; finished in 0.00s
|
|
|
|
error: test failed, to rerun pass `--lib`
|