From 6e6694f2f8e02825c57ccaafa307db5da7639aa0 Mon Sep 17 00:00:00 2001 From: Flipez Date: Tue, 15 Mar 2022 00:09:59 +0100 Subject: [PATCH] add not serializable test Signed-off-by: Flipez --- object/http_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/object/http_test.go b/object/http_test.go index 2843ac5..bea2086 100644 --- a/object/http_test.go +++ b/object/http_test.go @@ -20,6 +20,7 @@ func TestHTTPObjectMethods(t *testing.T) { {`def test(){};HTTP.handle("/", test)`, "Invalid handler. Call only supported on instance."}, {`a = HTTP.new(); a.listen(-1)`, "listening on port -1: listen tcp: address -1: invalid port"}, {`a = HTTP.new(); a.listen(80)`, "listening on port 80: listen tcp :80: bind: permission denied"}, + {"HTTP.new().to_json()", "HTTP is not serializable"}, } testInput(t, tests)