Sha256: 321abecf19ad37b3c1bcb8cb84f9b1bc6d780f7a705be7d70c0b5a120fd9e9a1

Contents?: true

Size: 1.64 KB

Versions: 3

Compression:

Stored size: 1.64 KB

Contents

#!/usr/bin/env bats

load 'test_helper'

@test 'Tables - indented' {
  spec_mde_xansi_dname_doc_blocks_expect docs/dev/table-indent.md \
   'DEMONSTRATE TABLE INDENTATION__Table flush at left._Centered columns._|     Common Name      |          Species          |    Genus     |    Family     | Year Discovered |_| -------------------- | ------------------------- | ------------ | ------------- | --------------- |_|  Tapanuli Orangutan  |    Pongo tapanuliensis    |    Pongo     |   Hominidae   |      2017       |_| Psychedelic Frogfish | Histiophryne psychedelica | Histiophryne | Antennariidae |      2009       |_|    Ruby Seadragon    |   Phyllopteryx dewysea    | Phyllopteryx | Syngnathidae  |      2015       |__  Table indented with two spaces._  Left-justified columns._  | Common Name                | Species        | Genus   | Family          | Year Discovered |_  | -------------------------- | -------------- | ------- | --------------- | --------------- |_  | Illacme tobini (Millipede) | Illacme tobini | Illacme | Siphonorhinidae | 2016            |__    Table indented with one tab._    Right-justified columns._    |     Common Name |             Species |     Genus |     Family | Year Discovered |_    | --------------- | ------------------- | --------- | ---------- | --------------- |_    | Spiny Dandelion | Taraxacum japonicum | Taraxacum | Asteraceae |            2022 |'
}

@test 'Tables - invalid' {
  spec_mde_xansi_dname_doc_blocks_expect docs/dev/table-invalid.md \
  'Missing column names__| ------------------- | - |_| Pongo tapanuliensis |   |__Missing dividers__| Species_| Pongo tapanuliensis__Missing table rows__| Species |_| ------- |'
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
markdown_exec-2.7.2 bats/table.bats
markdown_exec-2.7.1 bats/table.bats
markdown_exec-2.7.0 bats/table.bats