senseyeio / roger

Golang RServe client. Use R from Go
MIT License
272 stars 34 forks source link

Extremely long strings #35

Closed dareid closed 7 years ago

dareid commented 7 years ago

Adding the following test to SEXP parsing test suite fails:

func TestReallyLongResponse(t *testing.T) {
    obj, err := getResultObject("paste(rep(\"a\", 16780000), sep=\"\", collapse = \"\")")
    assert.Nil(t, err)
    str, ok := obj.(string)
    assert.Equal(t, ok, true, "Return obj should be a string")
    assert.Equal(t, len(str), 16780000, "String length expected to be 16780000 characters")
}