Bike.Test.LexerTest.ObjectLiterals C# (CSharp) Method

ObjectLiterals() private method

private ObjectLiterals ( ) : void
return void
        public void ObjectLiterals()
        {
            const string source = @"var person = {
                                        name: 'John',
                                        age: tmpAge,
                                        salary: 70.5,
                                        go: func(){this.age;}
                                    };";
            const string expected = @"k$var i$person = {
                                        i$name: 'John',
                                        i$age: i$tmpAge,
                                        i$salary: n$70.5,
                                        i$go: k$func(){k$this d$. i$age;}
                                      };<EOF>";
            Match(expected, source);
        }