public void long_qweb_bxl_test_BUG() { var c = File.ReadAllText(@"C:\code\usr\ugmk\eco\data\eco.param.bxl"); var s = Stopwatch.StartNew(); XElement x = null; for (int i = 0; i < 1; i++) { x = new BxlXmlParser().Parse(c, "main"); } Console.WriteLine(x.ToString().Length); File.WriteAllText(@"c:\tmp\qweb_param_bxl.xml", x.ToString()); }
public void bug_not_well_formed_usd() { var p = new BxlXmlParser(); var x = p.Parse("col \"vUSD\", \"$\"","main"); Assert.AreEqual(@"<root><col _file=""main"" _line=""1"" code=""vUSD"" id=""vUSD"" name=""$"" /></root>", x.ToString(SaveOptions.DisableFormatting)); }
public void keep_single_usd_test() { var p = new BxlXmlParser(); var x = p.Parse("c x='$' : '${z}'","main"); Assert.AreEqual(@"<root><c _file=""main"" _line=""1"" x=""$"">${z}</c></root>", x.ToString(SaveOptions.DisableFormatting)); }