_specs

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 11 Imported by: 0

README

Test cases to be embedded

JSON files in this directory are the test cases from the CommonMark spec.

These spec_*.json files will be embedded in the binary and used to test the specification.

How to update

To update:

  1. See the CommonMark spec for the latest test cases.
  2. Edit the spec_list.json and run download_specs.go to download the latest test cases.
    • Note that the spec_list.json is ordered, from the most recent to the oldest version.
  3. Update the test of ExampleListVersion() at "examples_test.go" to reflect the changes.

Documentation

Overview

This package downloads the test cases from the official spec repository.

Edit the "spec_list.json" file to add the specs you want to download.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL