gritzko/swarm

Maybe wrong Op.toString() result

Opened this issue · 0 comments

volyx commented

In JS

test('test', () => {
    let f = new Frame('*rga#test@2:1!:0\'B\'');
    for (const op of f) {
        console.log(op.toString());
    }
});

JS result

    *rga#test@2:1!
    *rga#test@2:$'B',

In Go

func Test_simpleOp(t *testing.T) {
  frame := ron.ParseFrame([]byte("*rga#test@2:1!:0'B'"))
  for !frame.EOF() {
    fmt.Println(frame.OpString());
    frame.Next();
  }
}

Go result

*rga#test@2:1!
*rga#test@2'B',

@olebedev @gritzko