packages feed

asciidoc-0.1: test/asciidoctor/colist/basic.test

// This example should assert only callouts list below the code listing.
// For callouts inside the listing is responsible inline_callout.
[source, ruby]
----
require 'sinatra' // <1>

get '/hi' do  # <2>
  "Hello World!" ;; <3>
end
----
<1> Library import
<2> URL mapping
<3> Content for response
>>>
Document
  { docMeta =
      Meta
        { docTitle = []
        , docTitleAttributes = Nothing
        , docAuthors = []
        , docRevision = Nothing
        , docAttributes = fromList [ ( "sectids" , "" ) ]
        }
  , docBlocks =
      [ Block
          mempty
          Nothing
          (Listing
             (Just (Language "ruby"))
             [ SourceLine "require 'sinatra' //" [ Callout 1 ]
             , SourceLine "" []
             , SourceLine "get '/hi' do  #" [ Callout 2 ]
             , SourceLine "  \"Hello World!\" ;;" [ Callout 3 ]
             , SourceLine "end" []
             ])
      , Block
          mempty
          Nothing
          (List
             CalloutList
             [ ListItem
                 Nothing
                 [ Block
                     mempty Nothing (Paragraph [ Inline mempty (Str "Library import") ])
                 ]
             , ListItem
                 Nothing
                 [ Block
                     mempty Nothing (Paragraph [ Inline mempty (Str "URL mapping") ])
                 ]
             , ListItem
                 Nothing
                 [ Block
                     mempty
                     Nothing
                     (Paragraph [ Inline mempty (Str "Content for response") ])
                 ]
             ])
      ]
  }