File: tg10.fw

package info (click to toggle)
funnelweb 3.2-4.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,744 kB
  • sloc: ansic: 9,156; makefile: 17
file content (32 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
TG10: Test tangling of library macros.

@O@<tg10.out@>@{@-
@<Sloth@>
@<Walrus@>
@<Emu@>
@<Aardvark@>
@}

1. Ensure that the lowest level dominates.

@$@<Sloth@>@{Sloth level zero (correct) @}
@$@<Sloth@>@L@{Sloth level one@}
@$@<Sloth@>@L@L@{Sloth level two@}
@$@<Sloth@>@L@L@L@{Sloth level three@}
@$@<Sloth@>@L@L@L@L@{Sloth level four@}
@$@<Sloth@>@L@L@L@L@L@{Sloth level five@}

@$@<Walrus@>@L@L@L@{Walrus level three (correct)@}
@$@<Walrus@>@L@L@L@L@L@{Walrus level five@}

@$@<Emu@>@L@L@{Emu level two (correct)@}
@$@<Emu@>@L@L@L@{Emu level three@}

2. Ensure += is working properly.

@$@<Aardvark@>@L+=@{First aardvark level one text (correct)@+@}
@$@<Aardvark@>@L@L+=@{Second aardvark level two text@}
@$@<Aardvark@>@L+=@{First aardvark level one text (correct)@+@}
@$@<Aardvark@>@L@L+=@{Second aardvark level two text@}

End of tests.