<commit_before>import module namespace test = "http://apps.28.io/test";

test:check-all-success({
    taxonomy-label: test:invoke-and-assert-deep-equal(
      "report-elements",
      {aid:"STANDARD-TAXONOMY-2014", label:"Accounting policy for deferred assets"},
      function($b as item*) as item* { $b.ReportElements },
      test:get-expected-result("edinet/report-elements-expected1.jq"),
      { NoArrayOrder: true }
    ),
    taxonomy-name: test:invoke-and-assert-deep-equal(
      "report-elements",
      {aid:"STANDARD-TAXONOMY-2014", name:"jppfs-cor:CurrentAssets"},
      function($b as item*) as item* { $b.ReportElements },
      test:get-expected-result("edinet/report-elements-expected2.jq"),
      { NoArrayOrder: true }
    ),
    company-label: test:invoke-and-assert-deep-equal(
      "report-elements",
      {edinetcode:"E01225", label:"Loss of inactive facilities"},
      function($b as item*) as item* { $b.ReportElements },
      test:get-expected-result("edinet/report-elements-expected3.jq"),
      { NoArrayOrder: true }
    ),
    company-name: test:invoke-and-assert-deep-equal(
      "report-elements",
      {edinetcode:"E01225", name:"jpcrp-cor:NotesConsolidatedStatementOfCashFlowsHeading"},
      function($b as item*) as item* { $b.ReportElements },
      test:get-expected-result("edinet/report-elements-expected4.jq"),
      { NoArrayOrder: true }
    ),
    company-name-xml : test:invoke-and-assert-deep-equal(
      "report-elements",
      {edinetcode:"E01225", name:"jpcrp-cor:NotesConsolidatedStatementOfCashFlowsHeading", format: "xml"},
      function($b as item*) as item* { document { $b/ReportElements } },
      test:get-expected-result-xml("edinet/report-elements-expected4-xml.jq"),
      { Format : "xml" }
    ),
    abstract-true : test:invoke-and-assert-deep-equal(
      "report-elements",
      {aid:"STANDARD-TAXONOMY-2014", abstract: "true", onlyNames: "true" },
      function($b as item*) as item* { count($b.ReportElements[]) },
      1027,
      ()
    ),
    abstract-false : test:invoke-and-assert-deep-equal(
      "report-elements",
      {aid:"STANDARD-TAXONOMY-2014", abstract: "false", onlyNames: "true" },
      function($b as item*) as item* { count($b.ReportElements[]) },
      4771,
      ()
    )
})
<commit_msg>:green_heart: Fix report element tests.<commit_after>import module namespace test = "http://apps.28.io/test";

test:check-all-success({
    taxonomy-label: test:invoke-and-assert-deep-equal(
      "report-elements",
      {aid:"STANDARD-TAXONOMY-2014", label:"Accounting policy for deferred assets"},
      function($b as item*) as item* { $b.ReportElements },
      test:get-expected-result("edinet/report-elements-expected1.jq"),
      { NoArrayOrder: true }
    ),
    taxonomy-name: test:invoke-and-assert-deep-equal(
      "report-elements",
      {aid:"STANDARD-TAXONOMY-2014", name:"jppfs-cor:CurrentAssets"},
      function($b as item*) as item* { $b.ReportElements },
      test:get-expected-result("edinet/report-elements-expected2.jq"),
      { NoArrayOrder: true }
    ),
    company-label: test:invoke-and-assert-deep-equal(
      "report-elements",
      {edinetcode:"E01225", label:"Loss of inactive facilities"},
      function($b as item*) as item* { $b.ReportElements },
      test:get-expected-result("edinet/report-elements-expected3.jq"),
      { NoArrayOrder: true }
    ),
    company-name: test:invoke-and-assert-deep-equal(
      "report-elements",
      {edinetcode:"E01225", name:"jpcrp-cor:NotesConsolidatedStatementOfCashFlowsHeading"},
      function($b as item*) as item* { $b.ReportElements },
      test:get-expected-result("edinet/report-elements-expected4.jq"),
      { NoArrayOrder: true }
    ),
    company-name-xml : test:invoke-and-assert-deep-equal(
      "report-elements",
      {edinetcode:"E01225", name:"jpcrp-cor:NotesConsolidatedStatementOfCashFlowsHeading", format: "xml"},
      function($b as item*) as item* { document { $b/ReportElements } },
      test:get-expected-result-xml("edinet/report-elements-expected4-xml.jq"),
      { Format : "xml" }
    ),
    abstract-true : test:invoke-and-assert-deep-equal(
      "report-elements",
      {aid:"STANDARD-TAXONOMY-2014", abstract: "true", onlyNames: "true" },
      function($b as item*) as item* { count($b.ReportElements[]) },
      1029,
      ()
    ),
    abstract-false : test:invoke-and-assert-deep-equal(
      "report-elements",
      {aid:"STANDARD-TAXONOMY-2014", abstract: "false", onlyNames: "true" },
      function($b as item*) as item* { count($b.ReportElements[]) },
      4771,
      ()
    )
})

{'fraction_non_alphanumeric': 0.16514756944444445, 'fraction_numerical': 0.019965277777777776, 'mean_word_length': 3.3563327032136105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6977936', 'n_tokens_mistral': 1570, 'n_tokens_neox': 1485, 'n_words': 236}