MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / scramble1

Method scramble1

annotations/AtUnitExample4.java:49–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 return getWord().equals("are");
48 }
49 @Test
50 boolean scramble1() {
51 // Use specific seed to get verifiable results:
52 rand = new Random(47);
53 System.out.println("'" + getWord() + "'");
54 String scrambled = scrambleWord();
55 System.out.println(scrambled);
56 return scrambled.equals("lAl");
57 }
58 @Test
59 boolean scramble2() {
60 rand = new Random(74);

Callers

nothing calls this directly

Calls 3

getWordMethod · 0.95
scrambleWordMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected