Add a simple HTML formatter.
[Akkordarbeit.git] / features / text_formatter.feature
blobc58814297ee33f344d45f2dc2caf62ed90ddc785
1 Feature: Text Output
2   In order to view the chord files
3   As a user
4   I want to get a text output
6   Scenario: Text Output of a simple Song
7     Given the parsetree
8     """
9     [
10       [
11         ['[D]', 'Do what I say, ', '[Em]', 'or I will suffer']
12       ]
13     ]
14     """
16     When I format it as text
17     Then the output should be
18     """
19     [D]            [Em]
20     Do what I say, or I will suffer
23     """
25   Scenario: Text Output of a simple Song with one Section and two lines
26     Given the parsetree
27     """
28     [
29       [
30         ['[D]', 'Do what I say, ', '[Em]', 'or I will suffer'],
31         ['Do what ', '[D]', 'I say, ', '[Em]', 'or I will suffer']
32       ]
33     ]
34     """
36     When I format it as text
37     Then the output should be
38     """
39     [D]            [Em]
40     Do what I say, or I will suffer
41             [D]    [Em]
42     Do what I say, or I will suffer
45     """
47   Scenario: Text Output of a simple Song with two Section and two lines
48     Given the parsetree
49     """
50     [
51       [
52         ['[D]', 'Do what I say, ', '[Em]', 'or I will suffer'],
53         ['Do what ', '[D]', 'I say, ', '[Em]', 'or I will suffer']
54       ],
55       [
56         ['[D]', 'Do what I say, ', '[Em]', 'or I will suffer'],
57         ['Do what ', '[D]', 'I say, ', '[Em]', 'or I will suffer']
58       ]
59     ]
60     """
62     When I format it as text
63     Then the output should be
64     """
65     [D]            [Em]
66     Do what I say, or I will suffer
67             [D]    [Em]
68     Do what I say, or I will suffer
70     [D]            [Em]
71     Do what I say, or I will suffer
72             [D]    [Em]
73     Do what I say, or I will suffer
76     """