1 ! Copyright (C) 2010 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: html.parser.analyzer math tools.test ;
4 IN: html.parser.analyzer.tests
7 [ 1 { 3 5 7 9 11 } [ odd? ] find-nth ] unit-test
10 [ 3 { 3 5 7 9 11 } [ odd? ] find-nth ] unit-test
13 [ 3 1 { 3 5 7 9 11 } [ odd? ] find-nth-from ] unit-test
16 [ 1 { 3 5 7 9 11 } [ odd? ] find-last-nth ] unit-test
19 [ 3 { 3 5 7 9 11 } [ odd? ] find-last-nth ] unit-test
22 [ 1 2 { 3 5 7 9 11 } [ odd? ] find-last-nth-from ] unit-test
25 [ 0 { 3 5 7 9 11 } [ odd? ] find-nth ]
26 [ undefined-find-nth? ] must-fail-with
28 [ 0 { 3 5 7 9 11 } [ odd? ] find-last-nth ]
29 [ undefined-find-nth? ] must-fail-with