Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21e6e29dd533191

Jump to content

Module talk:Includes/testcases

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia

All 17 tests passed.

test_hello

test_hello
TestExpectedActual
checkY includes({"a", "b", "c", "d"}, "b") true true
checkY includes({"a", "b", "c", "d"}, "b", 0) true true
checkY includes({"a", "b", "c", "d"}, "b", 1) true true
checkY includes({"a", "b", "c", "d"}, "b", 2) true true
checkY includes({"a", "b", "c", "d"}, "b", -3) true true
checkY includes({"a", "b", "c", "d"}, "b", -5) true true
checkY includes({[1] = "a",[100] = "b",[101] = "c"}, "b") true true
checkY includes({[1] = "a",[2] = "b",[3] = "c"}, "b", 0) true true
checkY includes({first = "a", second = "b", third = "c"}, "b") true true
checkY includes("b","b") false false
checkY includes({"a", "b", "c", "d"}) false false
checkY includes({"a", "b", "c", "d"}, "e") false false
checkY includes({"a", "b", "c", "d"}, "b", 3) false false
checkY includes({"a", "b", "c", "d"}, "b", 5) false false
checkY includes({"a", "b", "c", "d"}, "b", -2) false false
checkY includes({[1] = "a", [100] = "b", [101] = "c"}, "b", 0) false false
checkY includes({first = "a", second = "b", third = "c"}, "b", 0) false false