curl: update test for latest changes
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 15 Feb 2019 13:10:06 +0000 (08:10 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 15 Feb 2019 14:58:11 +0000 (09:58 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

tests/test_curl.nit

index 757c963..0d2b4d1 100644 (file)
 # 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)