]> gitweb.factorcode.org Git - factor.git/commitdiff
Add unit test for >alist on linked-assocs
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 17 Feb 2009 03:42:09 +0000 (21:42 -0600)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 17 Feb 2009 03:42:09 +0000 (21:42 -0600)
basis/linked-assocs/linked-assocs-tests.factor

index 7a259ee59ae26932130dc175a0479efb6675a397..5030e93abc955492392a6f5b6e813ec4b2153257 100644 (file)
@@ -54,4 +54,12 @@ IN: linked-assocs.test
     { [ [ 1- ] bi@ ] [ 2 / ] }  "second"  pick set-at
     4 6 pick values [ first call ] each
     + swap values <reversed> [ second call ] each
+] unit-test
+
+{ V{ { "az" 1 } { "by" 2 } { "cx" 3 } } } [
+    <linked-hash>
+    1 "az" pick set-at
+    2 "by" pick set-at
+    3 "cx" pick set-at
+    >alist
 ] unit-test
\ No newline at end of file