Skip to content

Commit 9d84737

Browse files
committed
Forgot to update implementation of JDoc.fromString to JDoc.from in BundlerTest and error message checker should use contains instead of equality now within IntTest
Signed-off-by: Lehlogonolo Poole <[email protected]>
1 parent 3c945d5 commit 9d84737

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/java/com/jaiva/full/BundlerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public CustomLib(IConfig<Object> config) {
3030

3131
static class FEcho extends BaseFunction {
3232
public FEcho() {
33-
super("echo", new TFunction("echo", new String[] {"arg1"}, null, -1, JDoc.fromString("d")));
33+
super("echo", new TFunction("echo", new String[] {"arg1"}, null, -1, JDoc.from("d")));
3434
this.freeze();
3535
}
3636

@@ -43,7 +43,7 @@ public Object call(TFuncCall tFuncCall, ArrayList<Object> params, IConfig<Object
4343

4444
static class VVar extends BaseVariable {
4545
public VVar() {
46-
super("poop", new TStringVar("poop", "factuality", -1, JDoc.fromString("The best string")), "facuality");
46+
super("poop", new TStringVar("poop", "factuality", -1, JDoc.from("The best string")), "facuality");
4747
this.freeze();
4848
}
4949
}

src/test/java/com/jaiva/full/IntTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void file2Jiv() {
105105
TStatementResolutionException error = (TStatementResolutionException) e.error;
106106

107107
// The error is on line 14
108-
Assertions.assertTrue(error.getMessage().startsWith("[14]"), "Error is not on line 14.");
108+
Assertions.assertTrue(error.getMessage().contains("14]"), "Error is not on line 14.");
109109
} catch (Exception e) {
110110
// catch any other exception that we realistically don't want to catch
111111
Assertions.fail("Exception thrown: " + e.getMessage(), e);

0 commit comments

Comments
 (0)