Skip to content

Commit 9d7e2dc

Browse files
author
RajShivu
committed
feat: implement support and restore test infrastructure
1 parent 1b290cb commit 9d7e2dc

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package testSuite;
2+
3+
import liquidjava.specification.Refinement;
4+
5+
public class CorrectResult {
6+
7+
@Refinement("$result > 10")
8+
public int getLargeNumber() {
9+
return 15;
10+
}
11+
12+
@Refinement("$result == (a + b)")
13+
public int sum(int a, int b) {
14+
return a + b;
15+
}
16+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Not Found Error
2+
package testSuite;
3+
import liquidjava.specification.Refinement;
4+
5+
public class ErrorResultVariable {
6+
public void test() {
7+
@Refinement("$result > 0")
8+
int x = 10;
9+
}
10+
}

0 commit comments

Comments
 (0)