Closed GoogleCodeExporter closed 8 years ago
Yes, these should be added (with it doing an automatic fallback mechanism for <
2.4)
Original comment by marc.gravell
on 12 Dec 2011 at 8:38
I was wondering if this was resolved and if that fix went out with the latest?
I have been using booksleeve for a few weeks, and I have been unable get
AddFirst to work. Nor have I been able to get the List.set with an index.
Any updates?
Original comment by scott.cl...@wbdevops.com
on 25 Sep 2013 at 7:22
I'm not aware of there being a problem here. I will investigate.
Original comment by marcgrav...@forestviewschool.org.uk
on 25 Sep 2013 at 7:38
The following test works fine. Can you supply a failing test?
using (var conn = Config.GetUnsecuredConnection())
{
const int DB = 5;
const string Key = "issue-10-list";
conn.Keys.Remove(DB, Key); // contents: nil
conn.Lists.AddFirst(DB, Key, "abc"); // "abc"
conn.Lists.AddFirst(DB, Key, "def"); // "def", "abc"
conn.Lists.AddFirst(DB, Key, "ghi"); // "ghi", "def", "abc",
conn.Lists.Set(DB, Key, 1, "jkl"); // "ghi", "jkl", "abc"
var contents = conn.Wait(conn.Lists.RangeString(DB, Key, 0, -1));
Assert.AreEqual(3, contents.Length);
Assert.AreEqual("ghi", contents[0]);
Assert.AreEqual("jkl", contents[1]);
Assert.AreEqual("abc", contents[2]);
}
Original comment by marc.gravell
on 26 Sep 2013 at 11:23
Original comment by marc.gravell
on 26 Sep 2013 at 11:23
Original issue reported on code.google.com by
jame...@gmail.com
on 12 Dec 2011 at 7:52