update to latest npm modules (#24)
* update to latest npm modules * bugfix, and better error output * add testcase, using DDIC type
This commit is contained in:
1
tests/use-ddic-string-table/expected_results.json
Normal file
1
tests/use-ddic-string-table/expected_results.json
Normal file
@@ -0,0 +1 @@
|
||||
{"version":1,"status":"pass"}
|
||||
14
tests/use-ddic-string-table/zcl_simple.clas.abap
Normal file
14
tests/use-ddic-string-table/zcl_simple.clas.abap
Normal file
@@ -0,0 +1,14 @@
|
||||
CLASS zcl_simple DEFINITION PUBLIC.
|
||||
PUBLIC SECTION.
|
||||
METHODS run RETURNING VALUE(res) TYPE i.
|
||||
ENDCLASS.
|
||||
|
||||
CLASS zcl_simple IMPLEMENTATION.
|
||||
|
||||
METHOD run.
|
||||
DATA foo TYPE string_table.
|
||||
APPEND |sdf| TO foo.
|
||||
res = 3.
|
||||
ENDMETHOD.
|
||||
|
||||
ENDCLASS.
|
||||
18
tests/use-ddic-string-table/zcl_simple.clas.testclasses.abap
Normal file
18
tests/use-ddic-string-table/zcl_simple.clas.testclasses.abap
Normal file
@@ -0,0 +1,18 @@
|
||||
CLASS ltcl_simple DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL.
|
||||
|
||||
PRIVATE SECTION.
|
||||
METHODS test FOR TESTING RAISING cx_static_check.
|
||||
|
||||
ENDCLASS.
|
||||
|
||||
CLASS ltcl_simple IMPLEMENTATION.
|
||||
|
||||
METHOD test.
|
||||
DATA simple TYPE REF TO zcl_simple.
|
||||
CREATE OBJECT simple.
|
||||
cl_abap_unit_assert=>assert_equals(
|
||||
act = simple->run( )
|
||||
exp = 3 ).
|
||||
ENDMETHOD.
|
||||
|
||||
ENDCLASS.
|
||||
Reference in New Issue
Block a user