CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
tap.js48 linesDownload Raw Back to languages
1/*2Language: Test Anything Protocol3Description: TAP, the Test Anything Protocol, is a simple text-based interface between testing modules in a test harness.4Requires: yaml.js5Author: Sergey Bronnikov <sergeyb@bronevichok.ru>6Website: https://testanything.org7*/8 9function tap(hljs) {10  return {11    name: 'Test Anything Protocol',12    case_insensitive: true,13    contains: [14      hljs.HASH_COMMENT_MODE,15      // version of format and total amount of testcases16      {17        className: 'meta',18        variants: [19          { begin: '^TAP version (\\d+)$' },20          { begin: '^1\\.\\.(\\d+)$' }21        ]22      },23      // YAML block24      {25        begin: /---$/,26        end: '\\.\\.\\.$',27        subLanguage: 'yaml',28        relevance: 029      },30      // testcase number31      {32        className: 'number',33        begin: ' (\\d+) '34      },35      // testcase status and description36      {37        className: 'symbol',38        variants: [39          { begin: '^ok' },40          { begin: '^not ok' }41        ]42      }43    ]44  };45}46 47export { tap as default };48 
basant307/AI_Governance_Project · CoolFace