Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 69 additions & 4 deletions test/format/format_tests-WMA.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
# because we use both in documentation and in the web interface.
#


'"-7.32"':
msg: A String with a number
latex:
Expand All @@ -39,6 +40,8 @@
OutputForm: "-7.32"
StandardForm: '\!\(\*RowBox[{"\"-7.32\""}]\)'
TraditionalForm: '\!\(\*FormBox["\"-7.32\"", TraditionalForm]\)'


'"Hola!"':
msg: A String
latex:
Expand All @@ -55,6 +58,8 @@
OutputForm: Hola!
StandardForm: "\\!\\(\\*RowBox[{\"\\\"Hola!\\\"\"}]\\)"
TraditionalForm: "\\!\\(\\*FormBox[\"\\\"Hola!\\\"\", TraditionalForm]\\)"


'"\[Pi] is a trascendental number"':
msg: A String
latex:
Expand All @@ -71,6 +76,8 @@
OutputForm: "\\[Pi] is a trascendental number"
StandardForm: "\\!\\(\\*RowBox[{\"\\\"\\[Pi] is a trascendental number\\\"\"}]\\)"
TraditionalForm: "\\!\\(\\*FormBox[\"\\\"\\[Pi] is a trascendental number\\\"\", TraditionalForm]\\)"


-1. 10^-5:
msg: small negative real number (>10^-5)
latex:
Expand All @@ -83,6 +90,8 @@
text:
InputForm: '-0.00001'
OutputForm: '-0.00001'


-1. 10^-6:
msg: very small negative real number (<10^-6)
latex:
Expand All @@ -94,6 +103,8 @@
text:
InputForm: -1.*^-6
OutputForm: " -6\n-1. 10"


-1. 10^5:
msg: large negative real number (<10^6)
latex:
Expand All @@ -103,6 +114,8 @@
text:
InputForm: '-100000.'
OutputForm: '-100000.'


-1. 10^6:
msg: very large negative real number (>10^6)
latex:
Expand All @@ -118,6 +131,8 @@
OutputForm: " 6\n-1. 10"
StandardForm: "\\!\\(\\*RowBox[{\"-\", \"1.`*^6\"}]\\)"
TraditionalForm: "\\!\\(\\*FormBox[RowBox[{\"-\", \"1.`*^6\"}], TraditionalForm]\\)"


'-4':
msg: An Integer
latex:
Expand All @@ -134,6 +149,8 @@
OutputForm: '-4'
StandardForm: "\\!\\(\\*RowBox[{\"-\", \"4\"}]\\)"
TraditionalForm: "\\!\\(\\*FormBox[RowBox[{\"-\", \"4\"}], TraditionalForm]\\)"


'-4.32':
msg: A MachineReal number
latex:
Expand All @@ -150,6 +167,8 @@
OutputForm: '-4.32'
StandardForm: "\\!\\(\\*RowBox[{\"-\", \"4.32`\"}]\\)"
TraditionalForm: "\\!\\(\\*FormBox[RowBox[{\"-\", \"4.32`\"}], TraditionalForm]\\)"


'-4.326563712`2':
msg: A String with a Precision Real number
latex:
Expand All @@ -166,6 +185,8 @@
OutputForm: "-4.3"
StandardForm: "\\!\\(\\*RowBox[{\"-\", \"4.326563712`2.\"}]\\)"
TraditionalForm: "\\!\\(\\*FormBox[RowBox[{\"-\", \"4.326563712`2.\"}], TraditionalForm]\\)"


-4.32`4:
msg: A PrecisionReal number
latex:
Expand All @@ -182,6 +203,8 @@
OutputForm: '-4.320'
StandardForm: "\\!\\(\\*RowBox[{\"-\", \"4.32`4.\"}]\\)"
TraditionalForm: "\\!\\(\\*FormBox[RowBox[{\"-\", \"4.32`4.\"}], TraditionalForm]\\)"


1. 10^-5:
msg: small real number (<10^-5)
latex:
Expand All @@ -191,6 +214,8 @@
text:
InputForm: '0.00001'
OutputForm: '0.00001'


1. 10^-6:
msg: very small real number (<10^-6)
latex:
Expand All @@ -201,6 +226,8 @@
text:
InputForm: 1.*^-6
OutputForm: " -6\n1. 10"


1. 10^5:
msg: large real number (<10^6)
latex:
Expand All @@ -214,6 +241,8 @@
OutputForm: '100000.'
StandardForm: "\\!\\(\\*RowBox[{\"100000.`\"}]\\)"
TraditionalForm: "\\!\\(\\*FormBox[\"100000.`\", TraditionalForm]\\)"


1. 10^6:
msg: very large real number (>10^6)
latex:
Expand All @@ -228,6 +257,8 @@
OutputForm: " 6\n1. 10"
StandardForm: "\\!\\(\\*RowBox[{\"1.`*^6\"}]\\)"
TraditionalForm: "\\!\\(\\*FormBox[\"1.`*^6\", TraditionalForm]\\)"


1/(1+1/(1+1/a)):
msg: FractionBox
latex:
Expand All @@ -243,6 +274,8 @@
OutputForm: " 1\n---------\n 1\n1 + -----\n 1\n 1 + -\n a"
StandardForm: "\\!\\(\\*FractionBox[\"1\", RowBox[{\"1\", \"+\", FractionBox[\"1\", RowBox[{\"1\", \"+\", FractionBox[\"1\", \"a\"]}]]}]]\\)"
TraditionalForm: "\\!\\(\\*FormBox[FractionBox[\"1\", RowBox[{FractionBox[\"1\", RowBox[{FractionBox[\"1\", \"a\"], \"+\", \"1\"}]], \"+\", \"1\"}]], TraditionalForm]\\)"


# Association
<|a \[Rule] x, b \[Rule] y, c \[Rule] <|d \[Rule] t|>|>:
msg: Association
Expand All @@ -260,6 +293,8 @@
OutputForm: "<|a -> x, b -> y, c -> <|d -> t|>|>"
StandardForm: "\\!\\(\\*RowBox[{\"\\[LeftAssociation]\", RowBox[{RowBox[{\"a\", \"\\[Rule]\", \"x\"}], \",\", RowBox[{\"b\", \"\\[Rule]\", \"y\"}], \",\", RowBox[{\"c\", \"\\[Rule]\", RowBox[{\"\\[LeftAssociation]\", RowBox[{\"d\", \"\\[Rule]\", \"t\"}], \"\\[RightAssociation]\"}]}]}], \"\\[RightAssociation]\"}]\\)"
TraditionalForm: "\\!\\(\\*FormBox[RowBox[{\"\\[LeftAssociation]\", RowBox[{RowBox[{\"a\", \"\\[Rule]\", \"x\"}], \",\", RowBox[{\"b\", \"\\[Rule]\", \"y\"}], \",\", RowBox[{\"c\", \"\\[Rule]\", RowBox[{\"\\[LeftAssociation]\", RowBox[{\"d\", \"\\[Rule]\", \"t\"}], \"\\[RightAssociation]\"}]}]}], \"\\[RightAssociation]\"}], TraditionalForm]\\)"


# Association nested 2
Association[a -> x, b -> y, c -> Association[d -> t, Association[e -> u]]]:
msg: Nested Association
Expand All @@ -276,6 +311,9 @@ Association[a -> x, b -> y, c -> Association[d -> t, Association[e -> u]]]:
OutputForm: <|a -> x, b -> y, c -> <|d -> t, e -> u|>|>
StandardForm: "\\!\\(\\*RowBox[{\"\\[LeftAssociation]\", RowBox[{RowBox[{\"a\", \"\\[Rule]\", \"x\"}], \",\", RowBox[{\"b\", \"\\[Rule]\", \"y\"}], \",\", RowBox[{\"c\", \"\\[Rule]\", RowBox[{\"\\[LeftAssociation]\", RowBox[{RowBox[{\"d\", \"\\[Rule]\", \"t\"}], \",\", RowBox[{\"e\", \"\\[Rule]\", \"u\"}]}], \"\\[RightAssociation]\"}]}]}], \"\\[RightAssociation]\"}]\\)"
TraditionalForm: "\\!\\(\\*FormBox[RowBox[{\"\\[LeftAssociation]\", RowBox[{RowBox[{\"a\", \"\\[Rule]\", \"x\"}], \",\", RowBox[{\"b\", \"\\[Rule]\", \"y\"}], \",\", RowBox[{\"c\", \"\\[Rule]\", RowBox[{\"\\[LeftAssociation]\", RowBox[{RowBox[{\"d\", \"\\[Rule]\", \"t\"}], \",\", RowBox[{\"e\", \"\\[Rule]\", \"u\"}]}], \"\\[RightAssociation]\"}]}]}], \"\\[RightAssociation]\"}], TraditionalForm]\\)"


# Complex
Complex[1.09*^12, 3.]:
msg: Complex number
latex:
Expand All @@ -291,6 +329,8 @@ Complex[1.09*^12, 3.]:
OutputForm: " 12\n1.09 10 + 3. I"
StandardForm: "\\!\\(\\*RowBox[{\"1.09`*^12\", \"+\", RowBox[{\"3.`\", \" \", \"\\[ImaginaryI]\"}]}]\\)"
TraditionalForm: "\\!\\(\\*FormBox[RowBox[{\"1.09`*^12\", \"+\", RowBox[{\"3.`\", \" \", \"\\[ImaginaryI]\"}]}], TraditionalForm]\\)"


Graphics[{Text[a^b,{0,0}]}]:
msg: Nontrivial Graphics - Fragile!
latex:
Expand All @@ -301,6 +341,8 @@ Graphics[{Text[a^b,{0,0}]}]:
OutputForm: -Graphics-
StandardForm: "\\!\\(\\*GraphicsBox[List[InsetBox[FormBox[SuperscriptBox[\"a\", \"b\"], TraditionalForm], List[0, 0]]]]\\)"
TraditionalForm: "\\!\\(\\*FormBox[GraphicsBox[List[InsetBox[FormBox[SuperscriptBox[\"a\", \"b\"], TraditionalForm], List[0, 0]]]], TraditionalForm]\\)"


Graphics[{}]:
msg: GraphicsBox - Fragile!
latex:
Expand All @@ -311,6 +353,8 @@ Graphics[{}]:
OutputForm: -Graphics-
StandardForm: "\\!\\(\\*GraphicsBox[List[]]\\)"
TraditionalForm: "\\!\\(\\*FormBox[GraphicsBox[List[]], TraditionalForm]\\)"


"Grid[{{\"Spanish\", \"Hola!\"},{\"Portuguese\", \"Ol\\[AGrave]!\"},{\"English\", \"Hi!\"}}]":
msg: Strings in a GridBox
latex:
Expand Down Expand Up @@ -353,6 +397,8 @@ Graphics[{}]:
\ Hi!\n"
StandardForm: "\\!\\(\\*TagBox[GridBox[{{\"\\\"Spanish\\\"\", \"\\\"Hola!\\\"\"}, {\"\\\"Portuguese\\\"\", \"\\\"Ol\\[AGrave]!\\\"\"}, {\"\\\"English\\\"\", \"\\\"Hi!\\\"\"}}, Rule[AutoDelete, False], Rule[GridBoxItemSize, List[Rule[\"Columns\", List[List[Automatic]]], Rule[\"Rows\", List[List[Automatic]]]]]], \"Grid\"]\\)"
TraditionalForm: "\\!\\(\\*FormBox[TagBox[GridBox[{{\"\\\"Spanish\\\"\", \"\\\"Hola!\\\"\"}, {\"\\\"Portuguese\\\"\", \"\\\"Ol\\[AGrave]!\\\"\"}, {\"\\\"English\\\"\", \"\\\"Hi!\\\"\"}}, Rule[AutoDelete, False], Rule[GridBoxItemSize, List[Rule[\"Columns\", List[List[Automatic]]], Rule[\"Rows\", List[List[Automatic]]]]]], \"Grid\"], TraditionalForm]\\)"


Grid[{{a,b},{c,d}}]:
msg: GridBox
latex:
Expand Down Expand Up @@ -394,11 +440,13 @@ Grid[{{a,b},{c,d}}]:
c d'
StandardForm: "\\!\\(\\*TagBox[GridBox[{{\"a\", \"b\"}, {\"c\", \"d\"}}, Rule[AutoDelete, False], Rule[GridBoxItemSize, List[Rule[\"Columns\", List[List[Automatic]]], Rule[\"Rows\", List[List[Automatic]]]]]], \"Grid\"]\\)"
TraditionalForm: "\\!\\(\\*FormBox[TagBox[GridBox[{{\"a\", \"b\"}, {\"c\", \"d\"}}, Rule[AutoDelete, False], Rule[GridBoxItemSize, List[Rule[\"Columns\", List[List[Automatic]]], Rule[\"Rows\", List[List[Automatic]]]]]], \"Grid\"], TraditionalForm]\\)"


#
# Integrate
#
Integrate[F[x], {x, a, g[b]}]:
msg: Nontrivial SubsuperscriptBox
msg: Definite Integral - Nontrivial SubsuperscriptBox
latex:
InputForm: \text{Integrate[F[x], \{x, a, g[b]\}]}
OutputForm: \text{Integrate}\left[F\left[x\right], \left\{x, a, g\left[b\right]\right\}\right]
Expand All @@ -415,6 +463,8 @@ Integrate[F[x], {x, a, g[b]}]:
<mo>[</mo> <mi>b</mi> <mo>]</mo></mrow></mrow> <mo>}</mo></mrow></mrow> <mo>]</mo></mrow>
text:
OutputForm: Integrate[F[x], {x, a, g[b]}]


MatrixForm[{{a,b},{c,d}}]:
msg: GridBox in a matrix
latex:
Expand Down Expand Up @@ -456,6 +506,8 @@ MatrixForm[{{a,b},{c,d}}]:
c d'
StandardForm: "\\!\\(\\*TagBox[RowBox[{\"(\", \"\\[NoBreak]\", GridBox[{{\"a\", \"b\"}, {\"c\", \"d\"}}, Rule[RowSpacings, 1], Rule[ColumnSpacings, 1], Rule[RowAlignments, Baseline], Rule[ColumnAlignments, Center]], \"\\[NoBreak]\", \")\"}], Function[BoxForm`e$, MatrixForm[BoxForm`e$]]]\\)"
TraditionalForm: "\\!\\(\\*FormBox[TagBox[RowBox[{\"(\", \"\\[NoBreak]\", GridBox[{{\"a\", \"b\"}, {\"c\", \"d\"}}, Rule[RowSpacings, 1], Rule[ColumnSpacings, 1], Rule[RowAlignments, Baseline], Rule[ColumnAlignments, Center]], \"\\[NoBreak]\", \")\"}], Function[BoxForm`e$, MatrixForm[BoxForm`e$]]], TraditionalForm]\\)"


Sqrt[1/(1+1/(1+1/a))]:
msg: SqrtBox
latex:
Expand Down Expand Up @@ -490,6 +542,8 @@ Sqrt[1/(1+1/(1+1/a))]:
OutputForm: " 1\nSqrt[---------]\n 1\n 1 + -----\n 1\n 1 + -\n a"
StandardForm: "\\!\\(\\*SqrtBox[FractionBox[\"1\", RowBox[{\"1\", \"+\", FractionBox[\"1\", RowBox[{\"1\", \"+\", FractionBox[\"1\", \"a\"]}]]}]]]\\)"
TraditionalForm: "\\!\\(\\*FormBox[SqrtBox[FractionBox[\"1\", RowBox[{FractionBox[\"1\", RowBox[{FractionBox[\"1\", \"a\"], \"+\", \"1\"}]], \"+\", \"1\"}]]], TraditionalForm]\\)"


Subscript[a, 4]:
msg: SubscriptBox
latex:
Expand All @@ -515,6 +569,8 @@ Subscript[a, 4]:
- Subscript[a, 4]
- BoxError
TraditionalForm: *id003


Subsuperscript[a, p, q]:
msg: SubsuperscriptBox
latex:
Expand All @@ -534,6 +590,8 @@ Subsuperscript[a, p, q]:
OutputForm: " q\na\n p"
StandardForm: "\\!\\(\\*TemplateBox[List[\"a\", \"p\", \"q\"], \"Subsuperscript\", Rule[SyntaxForm, SubsuperscriptBox]]\\)"
TraditionalForm: "\\!\\(\\*FormBox[TemplateBox[List[\"a\", \"p\", \"q\"], \"Subsuperscript\", Rule[SyntaxForm, SubsuperscriptBox]], TraditionalForm]\\)"


TableForm[{Graphics[{Text[a^b,{0,0}]}], Graphics[{Text[a^b,{0,0}]}]}]:
msg: A table of graphics - Fragile!
latex:
Expand All @@ -557,9 +615,8 @@ TableForm[{Graphics[{Text[a^b,{0,0}]}], Graphics[{Text[a^b,{0,0}]}]}]:
-Graphics-'
StandardForm: "\\!\\(\\*TagBox[TagBox[GridBox[{{GraphicsBox[List[InsetBox[FormBox[SuperscriptBox[\"a\", \"b\"], TraditionalForm], List[0, 0]]]]}, {GraphicsBox[List[InsetBox[FormBox[SuperscriptBox[\"a\", \"b\"], TraditionalForm], List[0, 0]]]]}}, Rule[RowSpacings, 1], Rule[ColumnAlignments, Left], Rule[ColumnAlignments, Left]], Column], Function[BoxForm`e$, TableForm[BoxForm`e$]]]\\)"
TraditionalForm: "\\!\\(\\*FormBox[TagBox[TagBox[GridBox[{{GraphicsBox[List[InsetBox[FormBox[SuperscriptBox[\"a\", \"b\"], TraditionalForm], List[0, 0]]]]}, {GraphicsBox[List[InsetBox[FormBox[SuperscriptBox[\"a\", \"b\"], TraditionalForm], List[0, 0]]]]}}, Rule[RowSpacings, 1], Rule[ColumnAlignments, Left], Rule[ColumnAlignments, Left]], Column], Function[BoxForm`e$, TableForm[BoxForm`e$]]], TraditionalForm]\\)"
#
#
#


TableForm[{{a,b},{c,d}}]:
msg: GridBox in a table
latex:
Expand Down Expand Up @@ -601,6 +658,8 @@ TableForm[{{a,b},{c,d}}]:
c d'
StandardForm: "\\!\\(\\*TagBox[GridBox[{{\"a\", \"b\"}, {\"c\", \"d\"}}, Rule[RowSpacings, 1], Rule[ColumnSpacings, 3], Rule[RowAlignments, Baseline], Rule[ColumnAlignments, Left]], Function[BoxForm`e$, TableForm[BoxForm`e$]]]\\)"
TraditionalForm: "\\!\\(\\*FormBox[TagBox[GridBox[{{\"a\", \"b\"}, {\"c\", \"d\"}}, Rule[RowSpacings, 1], Rule[ColumnSpacings, 3], Rule[RowAlignments, Baseline], Rule[ColumnAlignments, Left]], Function[BoxForm`e$, TableForm[BoxForm`e$]]], TraditionalForm]\\)"


\[Pi]:
msg: A greek letter Symbol
latex:
Expand All @@ -618,6 +677,8 @@ TableForm[{{a,b},{c,d}}]:
OutputForm: Pi
StandardForm: "\\!\\(\\*RowBox[{\"\\[Pi]\"}]\\)"
TraditionalForm: "\\!\\(\\*FormBox[\"\\[Pi]\", TraditionalForm]\\)"


a:
msg: A Symbol
latex:
Expand All @@ -635,6 +696,8 @@ a:
OutputForm: a
StandardForm: "\\!\\(\\*RowBox[{\"a\"}]\\)"
TraditionalForm: "\\!\\(\\*FormBox[\"a\", TraditionalForm]\\)"


a^(g[b]/c):
msg: SuperscriptBox with a nested expression.
latex:
Expand All @@ -654,6 +717,8 @@ a^(g[b]/c):
OutputForm: " g[b]/c\na"
StandardForm: "\\!\\(\\*SuperscriptBox[\"a\", FractionBox[RowBox[{\"g\", \"[\", \"b\", \"]\"}], \"c\"]]\\)"
TraditionalForm: "\\!\\(\\*FormBox[SuperscriptBox[\"a\", FractionBox[RowBox[{\"g\", \"(\", \"b\", \")\"}], \"c\"]], TraditionalForm]\\)"


a^4:
msg: SuperscriptBox
latex:
Expand Down
Loading
Loading