Skip to content

Commit

Permalink
Tests: Adapt FillFakeDatabrowserWindow to not setup invalid channel n…
Browse files Browse the repository at this point in the history
…umbers

FillFakeDatabrowserWindow was setting up 5 channels: 0, 2, 4, 6, 8 where 8
is an invalid channel number for DA.

We do not want to test against an invalid internal data state.
  • Loading branch information
MichaelHuth committed Jul 27, 2023
1 parent 449ec57 commit 7549ed3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Packages/tests/Basic/UTF_SweepFormula.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static Function [variable numSweeps, variable numChannels, WAVE/U/I channels] Fi
string name, trace

numSweeps = 10
numChannels = 5
numChannels = 4

Variable dataSize = 128
Variable mode = DATA_ACQUISITION_MODE
Expand All @@ -80,7 +80,7 @@ static Function [variable numSweeps, variable numChannels, WAVE/U/I channels] Fi
KillWaves numericalKeys, numericalValues

Make/FREE/T/N=(1, 1) keys = {{channelTypeC}}
Make/U/I/N=(numChannels) connections = {7,5,3,1,0}
Make/U/I/N=(numChannels) connections = {7,5,3,1}
Make/U/I/N=(numSweeps, numChannels) channels = q * 2
Make/D/FREE/N=(LABNOTEBOOK_LAYER_COUNT) values = NaN
Make/T/FREE/N=(LABNOTEBOOK_LAYER_COUNT) valuesText = lbnTextValue
Expand Down

0 comments on commit 7549ed3

Please sign in to comment.