Skip to content

Commit

Permalink
Fix: code format
Browse files Browse the repository at this point in the history
  • Loading branch information
nan01ab committed Jan 20, 2025
1 parent d808195 commit 06cd75c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Neo.UnitTests/Persistence/UT_DataCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ public void TestFind()
items = myDataCache.Find(new byte[] { });
items.Count().Should().Be(4);

// null and empty with the backwards direction -> miserably fails.
// Action action = () => myDataCache.Find(null, SeekDirection.Backward);
// action.Should().Throw<ArgumentException>();
// null and empty with the backwards direction start from the last key
items = myDataCache.Find(null, SeekDirection.Backward);
// no exception, and results check will be added later.

// action = () => myDataCache.Find(new byte[] { }, SeekDirection.Backward);
// action.Should().Throw<ArgumentException>();
items = myDataCache.Find(new byte[] { }, SeekDirection.Backward);
// no exception, and results check will be added later.

items = myDataCache.Find(k1, SeekDirection.Backward);
key1.Should().Be(items.ElementAt(0).Key);
Expand Down Expand Up @@ -439,7 +439,7 @@ public void TestFindEmptyPrefix()
items = dataCache.Find([0xff, 0xff, 0xff, 0xff, 0xff], SeekDirection.Backward).ToArray();
items.Length.Should().Be(1);
items[0].Key.ToArray().Should().BeEquivalentTo(k3.ToArray());

items = dataCache.Find([0xff], SeekDirection.Backward).ToArray();
items.Length.Should().Be(3);
items[0].Key.ToArray().Should().BeEquivalentTo(k3.ToArray());
Expand Down

0 comments on commit 06cd75c

Please sign in to comment.