Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ansharlubis committed Jan 21, 2024
1 parent 5546836 commit 0d5de08
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
/tests/hash_01/class
/tests/hash_02/class
/tests/hash_03/class
/tests/hash_04/class
/tests/exp_01/class
/tests/exp_03/class
/tests/exp_04/class
Expand Down
11 changes: 11 additions & 0 deletions tests/reference/compilable-field_03-9e555af.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"basename": "compilable-field_03-9e555af",
"cmd": "{infile}",
"infile": "tests/field_03/build.sh",
"infile_hash": "7e2ac6a407268835af55c8490e5fbd0e9e5d6c92a2a381cd98bf27e7",
"stdout": "compilable-field_03-9e555af.stdout",
"stdout_hash": "1733c0bacec01fd8daf69013a519c57fe78712b91dd64ea1124f45ca",
"stderr": null,
"stderr_hash": null,
"returncode": 0
}
54 changes: 54 additions & 0 deletions tests/reference/compilable-field_03-9e555af.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

public interface C {
public int get__x();

public int set__x(int toAssign);
}

public interface C_Factory {
}

public class C_v1 implements C {
public int x;

public int get__x() {
return this.x;
}

public int set__x(int toAssign) {
return this.x = toAssign;
}
}

public class C_v1_Factory implements C_Factory {
}

public interface D {
public float get__x__float();

public float set__x(float toAssign);

public C m();
}

public interface D_Factory {
}

public class D_v1 extends C_v1 implements D {
public float x;

public C m() {
return (C_v1) this;
}

public float get__x__float() {
return this.x;
}

public float set__x(float toAssign) {
return this.x = toAssign;
}
}

public class D_v1_Factory implements D_Factory {
}
4 changes: 4 additions & 0 deletions tests/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ compilable = true
filename = "tests/field_02/build.sh"
compilable = true

[[test]]
filename = "tests/field_03/build.sh"
compilable = true

[[test]]
filename = "tests/exp_01/build.sh"
compilable = true
Expand Down

0 comments on commit 0d5de08

Please sign in to comment.