1 USING: kernel furnace.actions io.crlf validators tools.test math math.parser
2 multiline namespaces http io.streams.string http.server http.server.requests
3 sequences splitting accessors ;
4 IN: furnace.actions.tests
7 [ "a" param "b" param [ string>number ] bi@ + ] >>display
10 STRING: action-request-test-1
11 GET http://foo/bar?a=12&b=13 HTTP/1.1
17 action-request-test-1 lf>crlf
18 [ read-request ] with-string-reader
20 { } "action-1" get call-responder
25 [ "a" param string>number sq ] >>display
28 STRING: action-request-test-2
29 GET http://foo/bar/123 HTTP/1.1
35 action-request-test-2 lf>crlf
36 [ read-request ] with-string-reader
38 { "5" } "action-2" get call-responder