diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-05-24 13:55:19 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-03 13:26:11 +0900 |
| commit | fbc41d795b8251180e09d003171f346487e7ab25 (patch) | |
| tree | 6199fae0522a9d4c22a917de9b0b00d31ac4faa4 /src/tests/mx2test.txt | |
| parent | 9a622918b2f64e81006356124a045ba99cc3765d (diff) | |
| download | krecipes-fbc41d79.tar.gz krecipes-fbc41d79.zip | |
Fix importers/exporters bugs. Fix tests and add them to build process.
The file `mx2test.txt` is taken from KRecipes 2.1 source code.
Other tests have been adjusted based on the tests in KRecipes 2.1 source code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit dfbafdbb2f7369438a750327544f9084a765e407)
Diffstat (limited to 'src/tests/mx2test.txt')
| -rw-r--r-- | src/tests/mx2test.txt | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/src/tests/mx2test.txt b/src/tests/mx2test.txt new file mode 100644 index 0000000..e3b54e4 --- /dev/null +++ b/src/tests/mx2test.txt @@ -0,0 +1,115 @@ +<?xml version="1.0" standalone="yes" encoding="ISO-8859-1"?> +<!DOCTYPE mx2 SYSTEM "mx2.dtd"> + +<mx2 source="my mind" date="Oct 22, 2009"> + +<Summ><Nam>Summary name</Nam></Summ> <!-- NOT SUPPORTED --> + +<RcpE name="Cookies Test" author="Colleen Beamer"> +<Serv qty="2"/><PrpT elapsed="0:30"/> + +<CatS> +<CatT>Snacks</CatT> +<CatT>Cookies & Squares</CatT> +</CatS> +<IngR name="granulated sugar" unit="c." qty="0.75 1" code="I"> +<INtI></INtI> +<IPrp></IPrp> +</IngR> +<IngR name="brown sugar" unit="c." qty="3/4 1" code="I"> +<INtI></INtI> +<IPrp></IPrp> +</IngR> +<IngR name="all-purpose flour" unit="c." qty="2" code="I"> +<INtI></INtI> +<IPrp></IPrp> +</IngR> +<IngR name="baking soda" unit="tsp." qty="1" code="I"> +<INtI></INtI> +<IPrp></IPrp> +</IngR> +<IngR name="shortening" unit="c." qty="1" code="I"> +<INtI></INtI> +<IPrp></IPrp> +</IngR> +<IngR name="peanut butter" unit="c." qty="1" code="I"> +<INtI></INtI> +<IPrp></IPrp> +</IngR> +<IngR name="eggs" unit="" qty="2" code="I"> +<INtI></INtI> +<IPrp></IPrp> +</IngR> +<IngR name="vanilla extract" unit="tsp." qty="1" code="I"> +<INtI></INtI> +<IPrp></IPrp> +</IngR> + +<DirS> +<DirT>Drop by spoonful on greased cookie sheet.</DirT> +<DirT>Bake in moderate oven.</DirT> +</DirS> + +<!-- NOT SUPPORTED --> +<Desc>Short description, I guess</Desc> +<Srce>krecipes.sourceforge.nte</Srce> +<AltS label="Internet address" source="http://krecipes.sourceforge.net/"/> +<Yield unit="kilogram" qty="1"/> + +</RcpE> + + +<RcpE name="Cookies Test" author="Colleen Beamer"> +<Serv qty="2"/><PrpT elapsed="0:30"/> + +<CatS> +<CatT>Snacks</CatT> +<CatT>Cookies & Squares</CatT> +</CatS> +<IngR name="granulated sugar" unit="c." qty="0.75 1" code="I"> +<INtI></INtI> +<IPrp></IPrp> +</IngR> +<IngR name="brown sugar" unit="c." qty="3/4 1" code="I"> +<INtI></INtI> +<IPrp></IPrp> +</IngR> +<IngR name="all-purpose flour" unit="c." qty="2" code="I"> +<INtI></INtI> +<IPrp></IPrp> +</IngR> +<IngR name="baking soda" unit="tsp." qty="1" code="I"> +<INtI></INtI> +<IPrp></IPrp> +</IngR> +<IngR name="shortening" unit="c." qty="1" code="I"> +<INtI></INtI> +<IPrp>softened, at room temperature</IPrp> +</IngR> +<IngR name="peanut butter" unit="c." qty="1" code="I"> +<INtI></INtI> +<IPrp></IPrp> +</IngR> +<IngR name="eggs" unit="" qty="2" code="I"> +<INtI></INtI> +<IPrp></IPrp> +</IngR> +<IngR name="vanilla extract" unit="tsp." qty="1" code="I"> +<INtI></INtI> +<IPrp></IPrp> +</IngR> + +<DirS> +<DirT>Drop by spoonful on greased cookie sheet.</DirT> +<DirT>Bake in moderate oven.</DirT> +</DirS> + +<!-- NOT SUPPORTED --> +<Desc>Short description, I guess</Desc> +<Srce>krecipes.sourceforge.nte</Srce> +<AltS label="Internet address" source="http://krecipes.sourceforge.net/"/> +<Yield unit="kilogram" qty="1"/> + +</RcpE> + +</mx2> |
