Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example unit test #13

Merged
merged 14 commits into from
Dec 2, 2024
Merged

Add example unit test #13

merged 14 commits into from
Dec 2, 2024

Conversation

gituser789
Copy link
Contributor

No description provided.

@gituser789 gituser789 added this to the 0.2.0 milestone Nov 28, 2024
@gituser789 gituser789 linked an issue Nov 28, 2024 that may be closed by this pull request
2 tasks
@gituser789 gituser789 self-assigned this Nov 28, 2024
Copy link
Collaborator

@SevenOfNinePE SevenOfNinePE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attributes are tested almost well. Missing is explicit the variable 'None'.
Data input are not tested well. There are several opportunity to test.
Below, you will find my ideas of a deep test with "mixed=integer+float":
"np_array ()" Pos: 6 Tests -> 1: (0 to 20e-3) (+- mixed) 2: (5e-3 to 20e-3) (+- float)
3: (-20e-3 to -5e-3) (positive mixed) 4: (-20e-3 to 0) (+- integer) 5: (-20e-3 to 20e-3) (+- mixed) 6: (-20e-3 to 20e-3) (+- mixed non equidistant)

"np_array ()" Neg: 3 Tests-> 1: (constant x-values) (+- mixed) 2: (Not ascent) (+- mixed)
3: (2 times same x-Value)
"mode" Pos: 4 Tests-> 'None' 'rad' 'deg' or 'time'
"mode" Neg: 1 Tests-> 'Wrong'
"f0" Pos: 3 Tests-> '1E5' 'None' '1E-12' (1E100 und 1E-100)?
"f0" Neg: 1 Tests-> '0'
"channel_label" Pos: 2 Test 'None' 'Anyword'
"channel_label" Neg: 1 Test 'float or integer'
"channel_unit" Pos: 2 Test 'None' 'Anyword'
"channel_unit" Neg: 1 Test 'float or integer'

@gituser789 gituser789 merged commit 28a55db into main Dec 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Unit tests
2 participants