Jump to content

Module talk:Includes/testcases

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Ahecht (talk | contribs) at 17:55, 14 August 2024 ({{#invoke:{{PAGENAME}}|run_tests}}). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

All 17 tests passed.

test_hello

test_hello
Text Expected Actual
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