You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: marklogic-data-hub/src/main/resources/ml-modules/root/data-hub/data-services/mastering/previewMatchingActivity.mjs
results.push(test.assertEqual(2,uris_2_3_Results.uris.length,"There should be 2 URIs in the response's URIs array for match on docs 2 and 3"));
46
-
results.push(test.assertEqual(5,uris_2_3_Results.actionPreview.length,`There should be 5 matching pairs for match on docs 2 and 3. actionPreview: ${xdmp.toJsonString(uris_2_3_Results.actionPreview)}`));
47
-
results.push(test.assertEqual("7.5",uris_2_3_Results.actionPreview[0].score.toString(),"For match with docs 1 and 2, the first score should be 7.5 for the match between 2 and 3"));
48
-
results.push(test.assertEqual("9.5",uris_2_3_Results.actionPreview[1].score.toString(),"For match with docs 1 and 3, the 2nd score should be 9.5"));
49
-
results.push(test.assertEqual("7.5",uris_2_3_Results.actionPreview[4].score.toString(),"For match with docs 2 and 3, the last score should be 7.5"));
53
+
results.push(test.assertEqual(4,uris_2_3_Results.actionPreview.length,`There should be 4 matching pairs for match on docs 2 and 3. actionPreview: ${xdmp.toJsonString(uris_2_3_Results.actionPreview)}`));
54
+
results.push(test.assertEqual("9.5",uris_2_3_Results.actionPreview[0].score.toString(),"For match with docs 2 and 4, the first score should be 9.5 for the match between 2 and 4"));
55
+
results.push(test.assertEqual("7.5",uris_2_3_Results.actionPreview[1].score.toString(),"For match with docs 1 and 2, the 2nd score should be 7.5"));
56
+
results.push(test.assertEqual("7.5",uris_2_3_Results.actionPreview[2].score.toString(),"For match with docs 1 and 4, the last score should be 7.5"));
57
+
results.push(test.assertEqual("7.5",uris_2_3_Results.actionPreview[2].score.toString(),"For match with docs 1 and 3, the last score should be 7.5"));
results.push(test.assertEqual(2,uris_2_3_ResultRestrictedToURIs.uris.length,"There should be 2 URIs in the response's URIs array for match on docs 2 and 3"));
54
62
results.push(test.assertEqual(1,uris_2_3_ResultRestrictedToURIs.actionPreview.length,`There should be 1 matching pair for match on docs 2 and 3 when not including the entire dataset. actionPreview: ${xdmp.toJsonString(uris_2_3_ResultRestrictedToURIs.actionPreview)}`));
55
63
results.push(test.assertEqual("7.5",uris_2_3_ResultRestrictedToURIs.actionPreview[0].score.toString(),"For match with docs 2 and 3, the last score should be 7.5"));
results.push(test.assertEqual(3,sampleResults.uris.length,"There should be 3 URIs in the response's URIs array when sampleSize is 3"));
67
+
results.push(test.assertEqual(3,sampleResults.actionPreview.length,`There should be 3 pairs in the response's URIs array when sampleSize is 3. ${xdmp.toJsonString(sampleResults)}`));
0 commit comments