Exemple #1
0
        public void GetString()
        {
            var tp = new TestParser();

            tp.SetContext("  1 \"te'st\" 'te\"st' 'test\\'x' 'test\\\\\\'x' 'abc\r'def' ", 0);
            tp.ExpectString("1");
            tp.ExpectString("\"te'st\"");
            tp.ExpectString("'te\"st'");
            tp.ExpectString("'test\\'x'");
            tp.ExpectString("'test\\\\\\'x'");
            tp.ExpectString("'abc\r", true);
            tp.ExpectString("'def'");
            tp.ExpectString(null);
        }