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
! 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 } [