Closed larshp closed 3 years ago
generally yes, this is better. I'm just lazy to do one-by-one :) And I reuse that mock json a couple of times so it saves time. But conceptually this is better to have separate tests. Just one thing, this test tests types, and also depth. (Althought there is an integrational one somewhere there ...)
I'll just add more, more is more, more is better for unit tests
merged, closing
Hi, the parse() test, https://github.com/sbcgua/ajson/blob/master/src/zcl_ajson.clas.testclasses.abap#L122 seems to be testing a lot?
Are you open to adding more basic unit tests before this? eg. one test method for each data type