Skip to content

Commit

Permalink
Remove wav integration tests (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-golebiowski committed May 8, 2021
1 parent d38416d commit af46c36
Showing 1 changed file with 0 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,46 +298,6 @@ public void When_PwlMinusTimePoint_Expect_Reference()
Assert.True(exports.All(export => EqualsWithToWithoutAssert(export.Item2, (export.Item1 < 1.0 ? 1.0 + export.Item1 : 2.0))));
}

[Fact]
public void When_WaveFile_Expect_NoException()
{
using var client = new WebClient();
var waveFileData = client.DownloadData("http://www.ecircuitcenter.com/Circuits/distortion_box/guitar2a.wav");
File.WriteAllBytes("guitar2a.wav", waveFileData);

var netlist = ParseNetlist(
"Wave file voltage source",
"V1 1 0 WAVE wavefile=guitar2a.wav chan=0",
"R1 1 0 10",
".WAVE guitar2a_out.wav 16 44100 V(1)",
".SAVE V(1)",
".TRAN 1e-8 5",
".END");

Assert.NotNull(netlist);
RunTransientSimulation(netlist, "V(1)");
}

[Fact]
public void When_WaveFile_WithoutWave_Expect_NoException()
{
using var client = new WebClient();
var waveFileData = client.DownloadData("http://www.ecircuitcenter.com/Circuits/distortion_box/guitar2a.wav");
File.WriteAllBytes("guitar2a.wav", waveFileData);

var netlist = ParseNetlist(
"Wave file voltage source",
"V1 1 0 wavefile=guitar2a.wav chan=0",
"R1 1 0 10",
".WAVE guitar2a_out.wav 16 44100 V(1)",
".SAVE V(1)",
".TRAN 1e-8 5",
".END");

Assert.NotNull(netlist);
RunTransientSimulation(netlist, "V(1)");
}

[Fact]
public void When_ACWithoutValue_Expect_NoException()
{
Expand Down

0 comments on commit af46c36

Please sign in to comment.