« on: April 26, 2021, 04:53:44 pm »
Hi
here my solution to this task
http://rosettacode.org/wiki/Test_a_functionUsing a well-known testing-specific library/module/suite for your language, write some tests for your language's entry in Palindrome.
'A palindrome is a phrase which reads the same backward and forward.
'Task
' Using a well-known testing-specific library/module/suite for your
' language, write some tests for your language's entry in Palindrome.
palindr = "asdfghjkl78987lkjhgfdsa"
If IsPalindrome
(palindr
) = -1 Then Print palindr;
" is palindrome" Else Print palindr;
" NOT is palindrome"
palindr = "roop123321poor5"
If IsPalindrome
(palindr
) = -1 Then Print palindr;
" is palindrome" Else Print palindr;
" NOT is palindrome"
palindr = "98765abba56789"
If IsPalindrome
(palindr
) = -1 Then Print palindr;
" is palindrome" Else Print palindr;
" NOT is palindrome"
IsPalindrome = 0
IsPalindrome = -1
Thanks to test and for feedbacks
« Last Edit: April 26, 2021, 05:45:40 pm by TempodiBasic »
Logged
Programming isn't difficult, only it's consuming time and coffee