Skip to content

Commit

Permalink
Fix example usage
Browse files Browse the repository at this point in the history
  • Loading branch information
FeldrinH committed Sep 24, 2023
1 parent f70ae22 commit 4e84790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/Katsed.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static int unaarne(int x, String y) {
@Grow
static int fib(int n) {
if (seenValues.contains(n)) {
Dendrologist.paintCurrentNode(Color.MAGENTA);
Dendrologist.paint(Color.MAGENTA);
}
seenValues.add(n);

Expand Down Expand Up @@ -54,7 +54,7 @@ static void unbalancedTree(int w, int h) {

@Grow
static int[] pööraJupid(int[] massiiv) {
Dendrologist.paintCurrentNode(Color.YELLOW);
Dendrologist.paint(Color.YELLOW);
if (Math.random() < 0.2) {
throw new RuntimeException("Random failure");
}
Expand Down

0 comments on commit 4e84790

Please sign in to comment.