diff options
author | Christian Schneider | 2024-05-07 14:31:21 +0200 |
---|---|---|
committer | Christian Schneider | 2024-05-07 14:31:21 +0200 |
commit | 4f42504a8c67208c89595a92fa393d7222fb9cf4 (patch) | |
tree | bb0eff627dc8ad4e561036ac0d3c48da005ae2f2 | |
parent | 35ba47b62955d06f4e322f64d8bd8e7faba31081 (diff) | |
download | itools-4f42504a8c67208c89595a92fa393d7222fb9cf4.tar.gz itools-4f42504a8c67208c89595a92fa393d7222fb9cf4.tar.bz2 itools-4f42504a8c67208c89595a92fa393d7222fb9cf4.zip |
Add type for assoc with maxlength, make test for 404 stricter
-rwxr-xr-x | test/it_url.t | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/it_url.t b/test/it_url.t index b6ef5ba..5f2d1d0 100755 --- a/test/it_url.t +++ b/test/it_url.t @@ -192,6 +192,14 @@ handle_server( handle_server( is( + it::filter_keys(it_url::get(['url' => "http://$host/", 'maxlength' => 5, 'it_error' => false, 'assoc' => true]), 'status,data'), + ['status' => 204, 'data' => null], + 'it_url::get() static call with port and too small maxlength' + ) +); + +handle_server( + is( it_url::get("http://$host/temp_redirect"), "Testserver output after temporary redirect", 'it_url::get() follows temproary redirect' @@ -263,8 +271,9 @@ $output = handle_server( ); $output = handle_server( - ok( - !it_url::get(['url' => "http://$host/not_found_with_body", 'body_on_fail' => false, 'it_error' => false]), + is( + it_url::get(['url' => "http://$host/not_found_with_body", 'body_on_fail' => false, 'it_error' => false]), + false, 'it_url::get() on 404 with body and body_on_fail' ) ); |