Skip to content

Commit

Permalink
bugfix: remove newline
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Oct 2, 2023
1 parent 5d9a59d commit c5d5450
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/DotFastLZ.Packaging.Tests/SixPackTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ public void TestBenchmarkSpeed()
{
const string benchmarkFileName = "benchmark.txt";
File.Delete(benchmarkFileName);

GenerateFile(benchmarkFileName, 1024 * 1024 * 8);

int status1 = SixPack.BenchmarkSpeed(1, benchmarkFileName);
int status2 = SixPack.BenchmarkSpeed(2, benchmarkFileName);

Assert.That(status1, Is.EqualTo(0));
Assert.That(status2, Is.EqualTo(0));
}
Expand All @@ -126,17 +126,16 @@ public void TestOpenFile()
{
const string filename = "open-file-test.txt";
File.Delete(filename);

Assert.That(SixPack.OpenFile(filename, FileMode.Open), Is.Null);
Assert.That(SixPack.OpenFile(filename, FileMode.Create, FileAccess.Write), Is.Not.Null);
}

public long GenerateFile(string filename, long size)
{
var text = @"About Adler32 Checksum Calculator
The Adler32 Checksum Calculator will compute an Adler32 checksum of string.
Adler32 is a checksum algorithm that was invented by Mark Adler.
In contrast to a cyclic redundancy check (CRC) of the same length, it trades reliability for speed.";
var text = "About Adler32 Checksum Calculator The Adler32 Checksum Calculator will compute an Adler32 checksum of string. " +
"Adler32 is a checksum algorithm that was invented by Mark Adler. " +
"In contrast to a cyclic redundancy check (CRC) of the same length, it trades reliability for speed.";

var bytes = Encoding.UTF8.GetBytes(text);

Expand Down

0 comments on commit c5d5450

Please sign in to comment.