From c0d905a456f26aafe935d6041179548beff711aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Fri, 15 Feb 2019 08:10:06 -0500 Subject: [PATCH] curl: update test for latest changes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- tests/test_curl.nit | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_curl.nit b/tests/test_curl.nit index 757c963..0d2b4d1 100644 --- a/tests/test_curl.nit +++ b/tests/test_curl.nit @@ -15,15 +15,15 @@ # See the License for the specific language governing permissions and # limitations under the License. -import curl +intrude import curl class CallbackManager super CurlCallbacks - redef fun body_callback(line: String) do end + redef fun body_callback(line) do end end -fun error_manager(err: CURLCode) do if not err.is_ok then print err +private fun error_manager(err: CURLCode) do if not err.is_ok then print err var url = "http://example.org/" @@ -210,4 +210,4 @@ var hashMapRefined = new HeaderMap hashMapRefined["hello"] = "toto" hashMapRefined["hello"] = "tata" hashMapRefined["allo"] = "foo" -print hashMapRefined.to_url_encoded(sys.curl) +print hashMapRefined.to_url_encoded(new Curl) -- 1.7.9.5