Jump to content

Module talk:Includes/testcases

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

All 17 tests passed.

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

Start a discussion about improving the Module:Includes/testcases page

Start a discussion