A sequence that computes its first/rest from functional calls. Caches.
Inheritance: clojure.lang.ASeq
Example #1
0
        public void Setup()
        {
            _mocks = new MockRepository();
            IFn fn = _mocks.StrictMock<IFn>();
            RMExpect.Call(fn.invoke()).Return(null);
            _mocks.ReplayAll();

            FnSeq fs = new FnSeq("abc", fn);

            _obj = _objWithNullMeta = fs;
            _expectedType = typeof(FnSeq);
        }
Example #2
0
        public void CtorWorks()
        {
            FnSeq fs = new FnSeq("abc",null);

            Expect(fs, Not.Null);
        }
Example #3
0
        public void Setup()
        {
            _restValues = new object[] { 2, 3, 4 };
            _values = new object[] { "abc", 2, 3, 4 };
            _mocks = new MockRepository();
            IFn _fn = _mocks.StrictMock<IFn>();
            RMExpect.Call(_fn.invoke()).Return(PersistentList.create(_restValues));

            _fs = new FnSeq("abc", _fn);

            _mocks.ReplayAll();
        }