]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/http/client/client-tests.factor
core: subseq-index? -> subseq-of?
[factor.git] / basis / http / client / client-tests.factor
index bb9c64fc47d7c9e5292d6d425ce5c10912c3fb1f..49b897180e86c942f75e17db7119fa77e1fb8a7c 100644 (file)
@@ -1,5 +1,6 @@
 USING: accessors http http.client http.client.private
-io.streams.string kernel namespaces sequences tools.test urls ;
+io.streams.string kernel namespaces sequences splitting
+tools.test urls ;
 IN: http.client.tests
 
 { "foo.txt" } [ "http://www.paulgraham.com/foo.txt" download-name ] unit-test
@@ -47,8 +48,8 @@ IN: http.client.tests
 ! hit the velox.ch website.
 ! { t } [
     ! "https://alice.sni.velox.ch" http-get nip
-    ! [ "Great!" swap subseq? ]
-    ! [ "TLS SNI Test Site: alice.sni.velox.ch" swap subseq? ] bi and
+    ! [ "Great!" subseq-of? ]
+    ! [ "TLS SNI Test Site: alice.sni.velox.ch" subseq-of? ] bi and
 ! ] unit-test
 
 { t } [