mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
Simple macro tests
This commit is contained in:
parent
ce2f9fd8ac
commit
edb40425d3
19
test/more/tests/ref/macro.gold
Normal file
19
test/more/tests/ref/macro.gold
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||||
|
<section id="header.example_hpp"><title>Header <<ulink url="../../example.hpp">example.hpp</ulink>></title><synopsis xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||||
|
|
||||||
|
<link linkend="foo_id1">foo</link>
|
||||||
|
<link linkend="FOO_id1">FOO</link>
|
||||||
|
<link linkend="bar">bar</link></synopsis>
|
||||||
|
<refentry xmlns:xi="http://www.w3.org/2001/XInclude" id="foo_id1"><refmeta><refentrytitle>Macro foo</refentrytitle><manvolnum>3</manvolnum></refmeta><refnamediv><refname>foo</refname><refpurpose/></refnamediv><refsynopsisdiv><synopsis><phrase role="comment">// In header: <<link linkend="header.example_hpp">example.hpp</link>>
|
||||||
|
|
||||||
|
</phrase>foo</synopsis></refsynopsisdiv><refsect1><title>Description</title>
|
||||||
|
</refsect1></refentry>
|
||||||
|
<refentry xmlns:xi="http://www.w3.org/2001/XInclude" id="FOO_id1"><refmeta><refentrytitle>Macro FOO</refentrytitle><manvolnum>3</manvolnum></refmeta><refnamediv><refname>FOO</refname><refpurpose/></refnamediv><refsynopsisdiv><synopsis><phrase role="comment">// In header: <<link linkend="header.example_hpp">example.hpp</link>>
|
||||||
|
|
||||||
|
</phrase>FOO</synopsis></refsynopsisdiv><refsect1><title>Description</title>
|
||||||
|
</refsect1></refentry>
|
||||||
|
<refentry xmlns:xi="http://www.w3.org/2001/XInclude" id="bar"><refmeta><refentrytitle>Macro bar</refentrytitle><manvolnum>3</manvolnum></refmeta><refnamediv><refname>bar</refname><refpurpose/></refnamediv><refsynopsisdiv><synopsis><phrase role="comment">// In header: <<link linkend="header.example_hpp">example.hpp</link>>
|
||||||
|
|
||||||
|
</phrase>bar</synopsis></refsynopsisdiv><refsect1><title>Description</title>
|
||||||
|
</refsect1></refentry>
|
||||||
|
</section>
|
19
test/more/tests/ref/macro.gold2
Normal file
19
test/more/tests/ref/macro.gold2
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||||
|
<section id="header.example_hpp"><title>Header <<ulink url="../../example.hpp">example.hpp</ulink>></title><synopsis xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||||
|
|
||||||
|
<link linkend="foo_id-1.1">foo</link>
|
||||||
|
<link linkend="FOO_id-1.2">FOO</link>
|
||||||
|
<link linkend="bar">bar</link></synopsis>
|
||||||
|
<refentry xmlns:xi="http://www.w3.org/2001/XInclude" id="foo_id-1.1"><refmeta><refentrytitle>Macro foo</refentrytitle><manvolnum>3</manvolnum></refmeta><refnamediv><refname>foo</refname><refpurpose/></refnamediv><refsynopsisdiv><synopsis><phrase role="comment">// In header: <<link linkend="header.example_hpp">example.hpp</link>>
|
||||||
|
|
||||||
|
</phrase>foo</synopsis></refsynopsisdiv><refsect1><title>Description</title>
|
||||||
|
</refsect1></refentry>
|
||||||
|
<refentry xmlns:xi="http://www.w3.org/2001/XInclude" id="FOO_id-1.2"><refmeta><refentrytitle>Macro FOO</refentrytitle><manvolnum>3</manvolnum></refmeta><refnamediv><refname>FOO</refname><refpurpose/></refnamediv><refsynopsisdiv><synopsis><phrase role="comment">// In header: <<link linkend="header.example_hpp">example.hpp</link>>
|
||||||
|
|
||||||
|
</phrase>FOO</synopsis></refsynopsisdiv><refsect1><title>Description</title>
|
||||||
|
</refsect1></refentry>
|
||||||
|
<refentry xmlns:xi="http://www.w3.org/2001/XInclude" id="bar"><refmeta><refentrytitle>Macro bar</refentrytitle><manvolnum>3</manvolnum></refmeta><refnamediv><refname>bar</refname><refpurpose/></refnamediv><refsynopsisdiv><synopsis><phrase role="comment">// In header: <<link linkend="header.example_hpp">example.hpp</link>>
|
||||||
|
|
||||||
|
</phrase>bar</synopsis></refsynopsisdiv><refsect1><title>Description</title>
|
||||||
|
</refsect1></refentry>
|
||||||
|
</section>
|
22
test/more/tests/ref/macro.xml
Normal file
22
test/more/tests/ref/macro.xml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright 2010 Daniel James.
|
||||||
|
|
||||||
|
Distributed under the Boost Software License, Version 1.0.
|
||||||
|
(See accompanying file LICENSE_1_0.txt or copy at
|
||||||
|
http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
-->
|
||||||
|
<header name="example.hpp">
|
||||||
|
<macro name="foo">
|
||||||
|
<description>
|
||||||
|
</description>
|
||||||
|
</macro>
|
||||||
|
<macro name="FOO">
|
||||||
|
<description>
|
||||||
|
</description>
|
||||||
|
</macro>
|
||||||
|
<macro name="bar">
|
||||||
|
<description>
|
||||||
|
</description>
|
||||||
|
</macro>
|
||||||
|
</header>
|
Loading…
x
Reference in New Issue
Block a user