# Test Cases

Joe Bloggs
JB

## Passthrough attributes

*lorum ipsum*

<emphasis>*lorum ipsum*</emphasis>

## Author attributes

{eval:expression}, {sys:command} and {sys2:command}, {counter:c1}

Hello Joe Bloggs (Joe Bloggs, JB).

first name or last name or surname.

first name and last name.

## System attributes

1 99 A

1 = 1, 99 = 99, A = A

2 100 B 2 100 B

2 = 2, 100 = 100, B = B

y: Foobar

3, 7

3, 3

## Quoted text attributes

A=X, (X), X, [X] X

A=X, (`_X_`), `X`, [X] `X` X

[*X*] +X+

intro intro

fun with text. fun with text. `fun with text`. fun with text. fun with text. “fun with text”. ‘fun with text’.

fun with text.

fun with text.

Obvious and very obvious.

Underline text, overline text and line-through text.

Testing 123 …

(“+1\n+”) if (usually “+-1\n+”)

(“`1\n`”) if (usually “`-1\n`”)

(‘Joe Bloggs’) and ‘Joe Bloggs’

## Configuration attribute entries

term | definition

term

  definition

## role attribute

Paragraph with a role attribute.

- first

- second

- third

## Break list nesting

1. List 1.

2. List 1.

1. List 2.

2. List 2.

## Listing Blocks

    $ ls -al

    [subs="quotes"]
    ------------------------------------------
    $ ls *-al*
    ------------------------------------------

Listing

    $ ls -al

Listing example

    $ ls -al

Python paragraph

    if n < 0: print 'Hello World!'

Titled Python listing

    if n < 0: print 'Hello World!'

Python listing example

    if n < 0: print 'Hello World!'

## Links

An inline anchor. An inline anchor with reftext.

; captioned link to this test case.

link to inline anchor; captioned link to inline anchor.

Link to anchor.

An example link to a bibliography entry .

[Test::Unit] | http://ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit.html

## Titles

#### Level 4

#### Level 3

#### Level 2

#### Level 1

#### Level 4

#### Level 3

#### Level 2

#### Level 1

Block title

Lorum ipsum.

## Lists

Bulleted:

- item text

  - item text

    - item text

      - item text

        - item text

          - item text

Numbered:

1. arabic (decimal) numbering

   1. loweralpha numbering

      1. upperalpha numbering

         1. lowerroman numbering

            1. upperroman numbering

               1. arabic (decimal) numbering

                  1. loweralpha numbering

                     1. lowerroman numbering

                        1. upperalpha numbering

                           1. upperroman numbering

Labeled:

label

  item text

  label

    item text

    label

      item text

      label

        item text

With item anchor:

one

  Item one.

two

  Item two.

three

  Item three.

## Inline passthroughs

- Test `ABC`.

- Test `ABC`.

- The `++i` and `++j` auto-increments.

- Paths `~/.vim` and `~/docs`.

- The `__init__` method.

- The `{id}` attribute.

List start number test:

1. List item 7.

2. List item 8.

## Images

### Block images

Tyger tyger

Tyger tyger

Tyger tyger two

Tiger
music2.png

Lorum ipsum.

### Inline images

Inline image

smallnew.png

Inline image

NEW!

Inline image

NEW!

## Admonishments

Lorum ipsum.

Lorum ipsum.

Lorum ipsum.

Lorum ipsum.

Lorum ipsum.

Lorum ipsum.

Lorum ipsum.

Lorum ipsum.

Lorum ipsum.

Lorum ipsum.

## Backslash escapes

Apostrophe

Don’t vs don't.

Exceptions

There are a number of exceptions to the usual single backslash rule — mostly relating to URL macros that have two syntaxes or quoting ambiguity. Here are some non-standard escape examples:

AsciiDoc | Renders
--- | ---
    \joe.bloggs@example.com
    <\joe.bloggs@example.com>
    \mailto:[\joe.bloggs@example.com]
    joe.bloggs@example.com
    <joe.bloggs@example.com>
    mailto:[joe.bloggs@example.com]
    \http://www.example.com
    \\http://www.example.com[]
    \\http://www.example.com[Foobar Limited]
    http://www.example.com
    http://www.example.com[]
    http://www.example.com[Foobar Limited]
    A C\++ Library for C++
    \\``double-quotes''
    \*\*F**ile Open\...
    A C++ Library for C++
    ``double-quotes''
    **F**ile Open...

## Paragraphs

Normal paragraph

This is a bold a line This is a strong line This is another strong line

Literal paragraph

    This is a *bold* a line
    This is a 'strong' line
    This is another _strong_ line

> Verse paragraph

>     This is a bold a line
>     This is a strong line
>     This is another strong line

Indented (literal) paragraph

    This is a *bold* a line
    This is a 'strong' line
    This is another _strong_ line

Indented with quotes substitution

    This is a bold a line
    This is a strong line
    This is another strong line

Literal paragraph with quotes substitution

    This is a bold a line
    This is a strong line
    This is another strong line

Literal block with quotes substitution

    This is a bold a line
    This is a strong line
    This is another strong line

> William Blake from Auguries of Innocence

>     To see a world in a grain of sand,
>     And a heaven in a wild flower,
>     Hold infinity in the palm of your hand,
>     And eternity in an hour.

> Bertrand Russell The World of Mathematics (1956)

> A good notation has subtlety and suggestiveness which at times makes it almost seem like a live teacher.

## URLs

### Mail Addresses

joe_bloggs@mail_server.com_

joe-bloggs@mail-server.com.

joe-bloggs@mail-server.com,joe-bloggs@mail-server.com,

Mail

Mail

Mail

joe.bloggs@mail.server.com lorum ipsum.

## Comments

Qui in magna commodo, est labitur dolorum an. Est ne magna primis. adolescens. Sit munere ponderum dignissim et. Minim luptatum et.

This comment line will be displayed in the output.

Qui in magna commodo, est labitur dolorum an. Est ne magna primis. Visible inline comment line. adolescens. Sit munere ponderum dignissim et. Minim luptatum et.

Block title

Lorum ipsum.

Block title

Lorum ipsum.

## List of terms

Using positional attribute to specify section template.

A glossary term

  The corresponding (indented) definition.

A second glossary term

  The corresponding (indented) definition.

## List of terms

Using named template attribute to specify section template.

A glossary term

  The corresponding (indented) definition.

A second glossary term

  The corresponding (indented) definition.

## Index Terms

Test 1 test1.

test1

Test 2 .

test2

Test 3 .

test3 secondary
secondary

Test 4 .

test4 secondary tertiary
secondary tertiary
tertiary

Test 5 test5.

test5

Test 6 .

test6

Test 7 .

test7 secondary
secondary

Test 8 .

test8 secondary tertiary
secondary tertiary
tertiary

Multi-passthough substitution (see http://groups.google.com/group/asciidoc/browse_frm/thread/1269dc2feb1a482c) `foo`

foo
foo bar
bar
foo bar two
bar two
two

## Table with fractional column width units

pagewidth and pageunits only apply to DocBook outputs.

Horizontal and vertical source data

Date | Duration | Avg HR | Notes
--- | --- | --- | ---
22-Aug-08 | 10:24 | 157 | Worked out MSHR (max sustainable heart rate) by going hard for this interval.
22-Aug-08 | 23:03 | 152 | Back-to-back with previous interval.
24-Aug-08 | 40:00 | 145 | Moderately hard interspersed with 3x 3min intervals (2min hard + 1min really hard taking the HR up to 160).

## Table with parent configuration file and header attribute entry

Attribute entry from header: TEST_ATTRIBUTE Replacement from `testcases.conf` configuration file: TEST_REPLACEMENT

## Table column specifiers with merged cells

See http://groups.google.com/group/asciidoc/browse_thread/thread/c9238380a1f2507a

`` | 1- A | 2- B
i- a | ii- b
`Values 1` | v1 | v2 | v3
`Values 2` | v4 | v5 | v6

## Floating tables and images

Simple table

1 | 2 | A
3 | 4 | B
5 | 6 | C

Tiger

Tiger image

## Section level offsets

At level 1

### Section title

At level 2

### Section title

At level 2

#### Section title

At level 3

## Section level offsets

At level 1

## Single-quoted attributes

> Samuel Johnson

> Sir, a woman’s preaching is like a dog’s walking on his hind legs. It is not done well; but you are surprised to find it done at all.

> Samuel Johnson

> Sir, a woman’s preaching is like a dog’s walking on his hind legs. It is not done well; but you are surprised to find it done at all.

## Footnotes

Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel.

footnote one. Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel. Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel.

Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel.

footnote two. Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel.

Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel . Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel.

https://asciidoc.org/ Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel

images/smallnew.png
Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel.

https://asciidoc.org/

Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel

AsciiDoc website.

. Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et

A footnote, "with an image"

images/smallnew.png
.

With [square brackets]

Qui in magna commodo, est labitur dolorum an. Est ne magna primis.

## Rulers and page breaks

Lorum ipsum…

Lorum ipsum…

Lorum ipsum…

## 这是一个测试

Double-with character titles. link to auto-generated section ID.

## Block macros

RS458 is 2.

Template line 1. Template line 2.

## àn îd without accénts

Lorum ipsum…

## àn îd with accénts

Lorum ipsum…

## Inline macros

A URL with [square brackets].

## Equation

Equation

\[C = \alpha + \beta Y^{\gamma} + \epsilon\]

## Example

Formal figures, tables, equations and examples can float in docbook backend