Test a function: Difference between revisions

Content added Content deleted
(Add source for Rust)
m (→‎{{header|Phix}}: comment -> use new requires() builtin)
Line 1,460: Line 1,460:


=={{header|Phix}}==
=={{header|Phix}}==
<lang Phix>requires("0.8.2")
Requires 0.8.2+, which implements the following routines (and a few others) in builtins/unit_tests.e (an autoinclude)

<lang Phix>function is_palindrome(sequence s)
function is_palindrome(sequence s)
return s==reverse(s)
return s==reverse(s)
end function
end function