Test a function: Difference between revisions

m
→‎{{header|Phix}}: comment -> use new requires() builtin
(Add source for Rust)
m (→‎{{header|Phix}}: comment -> use new requires() builtin)
Line 1,460:
 
=={{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)
return s==reverse(s)
end function
7,813

edits