Example #1
0
        public void TestGenomicRangeQuery2(string expectedStr, string S, string Pstr, string Qstr)
        {
            var prob     = new GenomicRangeQuery();
            var expected = ToIntArray(expectedStr);
            var P        = ToIntArray(Pstr);
            var Q        = ToIntArray(Qstr);
            var retVal   = prob.solution(S, P, Q);

            Assert.AreEqual(expected[0], retVal[0]);
            Assert.AreEqual(expected[1], retVal[1]);
            Assert.AreEqual(expected[2], retVal[2]);
        }