Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testability is not working. #51

Open
GoogleCodeExporter opened this issue Oct 23, 2015 · 0 comments
Open

Testability is not working. #51

GoogleCodeExporter opened this issue Oct 23, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.Create the below class
public class SumOfPrimes1 {
  private final Primeness primeness = new Primeness();
  public int sum(int max) {
    int sum = 0;
    for (int i = 0; i < max; i++) {
      if (primeness.isPrime(i)) {
        sum += i;
      }
    }
    return sum;
  }
}
2.call sum method from main method from another class.
public class App {
    public static void main(String args[]){ 
      SumOfPrimes1 sumValue = new SumOfPrimes1();
      sumValue.sum(25);
    }
}


What is the expected output? What do you see instead?
Should have reported as "Needs work" instead it reported as "Excellent"

What version of the product are you using? On what operating system?
1.3.3
on Windows Vista

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 26 Dec 2014 at 6:12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant