Skip to content

Commit

Permalink
created tests for the BaselineCorrection class
Browse files Browse the repository at this point in the history
  • Loading branch information
crswong888 committed Aug 17, 2021
1 parent 7e3b625 commit 8b3fa82
Show file tree
Hide file tree
Showing 8 changed files with 3,156 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ peacock_run_exe_tmp.i
*.py
*.pyc
!python/**/*.py
!doc/**/*.py
!test/**/*.py
**/.ipynb_checkpoints

# Allow certain files in gold directories
Expand Down Expand Up @@ -53,4 +55,4 @@ doc/doxygen/html
!doc/content/media/**/*.png

# Allow CSV in data directory
!tests/data/**/*.csv
!test/tests/data/**/*.csv
27 changes: 27 additions & 0 deletions test/tests/functions/baseline_correction/errors.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[Mesh]
type = GeneratedMesh
dim = 1
[]

[Problem]
solve = false
[]

[Functions]
[function]
type = PiecewiseLinear
x = '0 1'
y = '0 1'
[]
[bad_function]
type = ConstantFunction
[]
[error_test]
type = BaselineCorrection
function = function
[]
[]

[Executioner]
type = Steady
[]
Loading

0 comments on commit 8b3fa82

Please sign in to comment.