This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static Quad UnmemoizedStep(Quad q) | |
{ | |
Debug.Assert(q.Level >= 2); | |
Quad r; | |
if (q.IsEmpty) | |
r = Empty(q.Level - 1); | |
else if (q.Level == 2) | |
r = StepBaseCase(q); | |
else | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestFixture] | |
public class SafeListTests | |
{ | |
[Test] | |
public void TestRemoveWithDiscards() | |
{ | |
// Fill with 1..10 | |
var undertest = SafeList<int>.Empty.AddRange(Enumerable.Range(1, 10)); | |
Assert.AreEqual(10, undertest.Count); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using NUnit.Framework; | |
namespace CodeSamples | |
{ | |
[TestFixture] | |
public class FindRunTests |