Skip to content

Commit

Permalink
Add missing test, restore deleted line (#3988)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwen committed Oct 3, 2014
1 parent 19b788f commit ee84d05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions framework/src/utils/InputParameters.C
Expand Up @@ -277,6 +277,7 @@ InputParameters::mooseObjectSyntaxVisibility() const
rangeCheck<type, up_type>(long_name, short_name, vector_p, oss); \
} while (0)


void
InputParameters::checkParams(const std::string &prefix)
{
Expand Down
12 changes: 9 additions & 3 deletions test/tests/parser/vector_range_checking/tests
Expand Up @@ -11,16 +11,22 @@
expect_err = "Range check failed for parameter Materials/vecrangecheck/iv3"
cli_args = Materials/vecrangecheck/iv3="1.0 2.0"
[../]
[./outofbounds]
[./allelementcheck]
type = 'RunException'
input = 'all_pass.i'
expect_err = "Error parsing expression: rvl_10 > 0\nOut of range variable rvl_10"
cli_args = Materials/vecrangecheck/rvl="1.0 2.0"
expect_err = "Range check failed for parameter Materials/vecrangecheck/rvp\n\tExpression: rvp > 0\n\t Component: 1"
cli_args = Materials/vecrangecheck/rvp="1.0 -2.0 3.0"
[../]
[./elementcompare]
type = 'RunException'
input = 'all_pass.i'
expect_err = "Range check failed for parameter Materials/vecrangecheck/ivg"
cli_args = Materials/vecrangecheck/ivg="1.0 2.0"
[../]
[./outofbounds]
type = 'RunException'
input = 'all_pass.i'
expect_err = "Error parsing expression: rvl_10 > 0\nOut of range variable rvl_10"
cli_args = Materials/vecrangecheck/rvl="1.0 2.0"
[../]
[]

0 comments on commit ee84d05

Please sign in to comment.