Skip to content

Commit

Permalink
SwingNumberWidgetTest: add BigInteger parameter
Browse files Browse the repository at this point in the history
Previous to 40bd474, this would throw a NullPointerException.

Fixes #70.
  • Loading branch information
imagejan committed Jul 19, 2022
1 parent c5a7be9 commit 2d36f9d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ private String[] getExpectedValues() {
"1.000",
"1.0000",
"1.000",
"1.0000"
"1.0000",
"0"
};
}

Expand All @@ -135,6 +136,9 @@ private String createScript() {
"#@ Double (value=1, min=0, max=10, stepSize=0.001, persist=false, style=\"slider,format:0.0000\") n\n" +
"#@ Double (value=1, min=0, max=10, stepSize=0.001, persist=false, style=\"scroll bar\") o\n" +
"#@ Double (value=1, min=0, max=10, stepSize=0.001, persist=false, style=\"scroll bar,format:0.0000\") p\n" +
"\n" +
"// BigInteger without min, max, stepSize\n" +
"#@ BigInteger (persist=false) q\n" +
"";
return script;
}
Expand Down

0 comments on commit 2d36f9d

Please sign in to comment.