Skip to content

Java System.out.print is affecting Kata tests. Bad solution can be submitted. #867

@dinglemouse2250

Description

@dinglemouse2250

A user encountered some weird problem running one of my Kata.

  • His solution fails my test cases
  • He included some Java System.out.print statements and magigically the Solution "passes". Actually it still fails same as before but CW does not recognize it anymore as failing!

--

I have reproduced his problem and the System.out.print REALLY DO affect the test result in some strange way.

Futhermore, if I change his System.out.print statements to println instead of print then the bad Kata solution fails again like it was ought to...

Something weird going on...

PSA screenshot showing the Output window when using System.out.print.

  • Notice the Passed number (1) is plain wrong.
  • Notice the error message shows on the screen but CW still thinks the solutions is a pass.

cw-print-issue

FYI - Here is link to his solution code:
https://www.codewars.com/kata/reviews/56f53a5b6dc4feeaa2000044/groups/58d1e2f7f4080cf53d0000bb

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions