Java Advent: Mutation Testing

Testing is an important and intrinsic component of software. Tests are required to ensure quality and maintainability of code. Consider the code below and the tests associated with it. The code is straightforward and the tests also cover 100% of the lines… Read more

Similar

Catching Java Assertion Errors

The Java Java assert statement can be used for conditionally checking program invariants. Assertions are enabled or disabled with the desired level of granularity by Java Virtual Machine flags, as … (more…)

Read more »

Backspaces in String Challenge Using Java

The challenge Assume "#" is like a backspace in string. This means that string "a#bc#d" actually is "bd" Your task is to process a string with "#" symbols. Examples Test cases The solution in Java Option 1: Option 2 (using regex): Option 3 (using substrin... (more…)

Read more »