transpiler icon indicating copy to clipboard operation
transpiler copied to clipboard

todo, concat value

Open larshp opened this issue 3 years ago • 2 comments

bug,

    lv_value =
      '<?xml version="1.0" encoding="utf-16"?>#<abapGit version="v1.0.0">#' &
      ' <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">#' &
      '  <asx:values>#   <DATA>#    <FOO>2</FOO>#    <BAR>A' &
      '</BAR>#   </DATA>#  </asx:values># </asx:abap>#</abapGit>#'.

larshp avatar Feb 14 '22 15:02 larshp

image

larshp avatar Feb 14 '22 15:02 larshp

  it.only("simple ampersand concat", async () => {
    const code = `
    DATA lv_value TYPE string.
    lv_value = 'foo' & 'bar'.
    ASSERT lv_value = 'foobar'.`;
    const js = await run(code);
    console.dir(js);
    const f = new AsyncFunction("abap", js);
    await f(abap);
  });

larshp avatar Feb 14 '22 15:02 larshp