|
1 | 1 | # Basic tests |
2 | 2 | $ aslspec hello.spec --render; diff -w generated_macros.tex hello.expected; rm -f generated_macros.tex |
3 | 3 | Generated LaTeX macros into generated_macros.tex |
| 4 | + 11c11 |
| 5 | + < \newcommand\none[0]{ \hyperlink{constant-none}{\textsf{none}} } % Generated from none |
| 6 | + --- |
| 7 | + > \newcommand\None[0]{ \hyperlink{constant-None}{\textsf{None}} } % Generated from None |
| 8 | + 19c19 |
| 9 | + < \DefineConstant{none}{\texthypertarget{constant-none}$\none$} % EndDefineConstant |
| 10 | + --- |
| 11 | + > \DefineConstant{None}{\texthypertarget{constant-None}$\None$} % EndDefineConstant |
4 | 12 | $ aslspec typedefs.spec --render; diff -w generated_macros.tex typedefs.expected; rm -f generated_macros.tex |
5 | 13 | Generated LaTeX macros into generated_macros.tex |
| 14 | + 12a13 |
| 15 | + > \newcommand\None[0]{ \hyperlink{constant-None}{\textsf{None}} } % Generated from None |
| 16 | + 24d24 |
| 17 | + < \newcommand\none[0]{ \hyperlink{constant-none}{\textsf{none}} } % Generated from none |
| 18 | + 30c30 |
| 19 | + < \DefineConstant{none}{\texthypertarget{constant-none}$\none$} % EndDefineConstant |
| 20 | + --- |
| 21 | + > \DefineConstant{None}{\texthypertarget{constant-None}$\None$} % EndDefineConstant |
6 | 22 | $ aslspec relations.spec --render; diff -w generated_macros.tex relations.expected; rm -f generated_macros.tex |
7 | 23 | Generated LaTeX macros into generated_macros.tex |
| 24 | + 9a10 |
| 25 | + > \newcommand\None[0]{ \hyperlink{constant-None}{\textsf{None}} } % Generated from None |
| 26 | + 18d18 |
| 27 | + < \newcommand\none[0]{ \hyperlink{constant-none}{\textsf{none}} } % Generated from none |
| 28 | + 26c26 |
| 29 | + < \DefineConstant{none}{\texthypertarget{constant-none}$\none$} % EndDefineConstant |
| 30 | + --- |
| 31 | + > \DefineConstant{None}{\texthypertarget{constant-None}$\None$} % EndDefineConstant |
8 | 32 | $ aslspec rule.spec --render; diff -w generated_macros.tex rule.expected; rm -f generated_macros.tex |
9 | 33 | Generated LaTeX macros into generated_macros.tex |
10 | | - 82,86c82,86 |
11 | | - < \item define \texttt{res} as \begin{itemize}\item \texttt{a} if \texttt{a} is equal to \texttt{b}, \item the sum of \texttt{a} and \texttt{b} if \texttt{a} is greater than \texttt{b}, and \item \texttt{b} if \texttt{a} is less than \texttt{b}\end{itemize} |
12 | | - < \item define \texttt{y} as the rec record with $\Fieldf$ value \texttt{a} and $\Fieldg$ value \texttt{b} |
13 | | - < \item define \texttt{r\_f} as the sum of the field $\FIELDf$ of \texttt{r} and the field $\FIELDg$ of \texttt{r} |
14 | | - < \item define \texttt{r'} as \texttt{r} with $\FIELDf$ updated to \texttt{res} |
15 | | - < \item \textbf{the result is:} the pair consisting of \texttt{res} (for the output variable \texttt{c}) and \texttt{r'} (for the output variable \texttt{r'}). |
| 34 | + 8a9 |
| 35 | + > \newcommand\None[0]{ \hyperlink{constant-None}{\textsf{None}} } % Generated from None |
| 36 | + 12d12 |
| 37 | + < \newcommand\none[0]{ \hyperlink{constant-none}{\textsf{none}} } % Generated from none |
| 38 | + 20c20 |
| 39 | + < \DefineConstant{none}{\texthypertarget{constant-none}$\none$} % EndDefineConstant |
16 | 40 | --- |
17 | | - > \item define \texttt{res} as (1) if \texttt{a} is equal to \texttt{b} holds then \texttt{a}, (2) if \texttt{a} is greater than \texttt{b} holds then the sum of (1) \texttt{a}, and (2) \texttt{b}, and (3) if \texttt{a} is less than \texttt{b} holds then \texttt{b}; |
18 | | - > \item define \texttt{y} as the rec record with $\Fieldf$ value \texttt{a} and $\Fieldg$ value \texttt{b}; |
19 | | - > \item define \texttt{r\_f} as the sum of (1) the field $\FIELDf$ of \texttt{r}, and (2) the field $\FIELDg$ of \texttt{r}; |
20 | | - > \item define \texttt{r'} as \texttt{r} with $\FIELDf$ updated to \texttt{res}; |
21 | | - > \item \textbf{the result is:} the pair consisting of \texttt{res} (for the output variable \texttt{c}) and \texttt{r'}. |
| 41 | + > \DefineConstant{None}{\texthypertarget{constant-None}$\None$} % EndDefineConstant |
22 | 42 | $ aslspec operators.spec --render; diff -w generated_macros.tex operators.expected; rm -f generated_macros.tex |
23 | 43 | Generated LaTeX macros into generated_macros.tex |
24 | | - 55,56c55,56 |
25 | | - < \item the sum of \texttt{a} and \texttt{b} is equal to \texttt{c} |
26 | | - < \item define \texttt{d} as: if \texttt{a} is in \texttt{S} then \texttt{b} else \texttt{c} |
| 44 | + 10a11 |
| 45 | + > \newcommand\None[0]{ \hyperlink{constant-None}{\textsf{None}} } % Generated from None |
| 46 | + 12d12 |
| 47 | + < \newcommand\none[0]{ \hyperlink{constant-none}{\textsf{none}} } % Generated from none |
| 48 | + 18c18 |
| 49 | + < \DefineConstant{none}{\texthypertarget{constant-none}$\none$} % EndDefineConstant |
27 | 50 | --- |
28 | | - > \item the sum of all numbers in (1) \texttt{a}, and (2) \texttt{b} is equal to \texttt{c}; |
29 | | - > \item define \texttt{d} as: if \texttt{a} is in \texttt{S} then \texttt{b} else \texttt{c}; |
30 | | - |
| 51 | + > \DefineConstant{None}{\texthypertarget{constant-None}$\None$} % EndDefineConstant |
31 | 52 | $ aslspec type_name.bad |
32 | 53 | Syntax Error: type_name.bad:1:9: illegal element-defining identifier: t2 |
33 | 54 | [1] |
|
0 commit comments