Humdrum Extras

thrux examples


This page gives example input and output data for the thrux program. The output data from these tests can be compared to output on your platform using the same input file in order to determine if there is a problem with the thrux program. If the output you generate is not the same as the output listed in the individual tests, then something may be wrong with the compiled program or your computing environment (or a bug added to the program after the example output was generated).


Test Index

    Test 001:Expand sections using the default thru label.
    Test 002:Expand sections using the default label extracted in reverse order.
    Test 003:Expand sections using the norep label.
    Test 004:Expand the data according to a command-line realization sequence.
    Test 005:List variants and labels in a file.
    Test 006:Give detailed information about the labeled sections in the file.


Test 001: Expand sections using the default thru label.

The command:

     thrux input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 002: Expand sections using the default label extracted in reverse order.

The command:

     thrux input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 003: Expand sections using the norep label.

The command:

     thrux -v norep input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 004: Expand the data according to a command-line realization sequence.

The command:

     thrux -r "A,B,C,B,A" input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 005: List variants and labels in a file.

The command:

     thrux -l input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 006: Give detailed information about the labeled sections in the file.

The command:

     thrux -i input-file > output-file
using the following input, will generate the following output:

input-file:
output-file: