Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

88
Views
How to approach writing unit tests for reformating

I wrote a method that truns raw data into an object (JSON for all intents and purposes), it has several fields and sub-objects. Now that I want to write tests for it I'm stuck on how to approach it. It seems to me there is no other way than to repeat steps of my method and connect each field from raw data to the corresponding field in my desired object, to verify they are the same. My question is whether this is the correct approach, are there any simpler ideas to utilize?

Thanks in advance!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!