Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
25
Task/String-comparison/Seed7/string-comparison-1.seed7
Normal file
25
Task/String-comparison/Seed7/string-comparison-1.seed7
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
$ include "seed7_05.s7i";
|
||||
|
||||
const proc: showComparisons (in string: a, in string: b) is func
|
||||
begin
|
||||
writeln("compare " <& literal(a) <& " with " <& literal(b) <&":");
|
||||
writeln("a = b returns: " <& a = b);
|
||||
writeln("a <> b returns: " <& a <> b);
|
||||
writeln("a < b returns: " <& a < b);
|
||||
writeln("a > b returns: " <& a > b);
|
||||
writeln("a <= b returns: " <& a <= b);
|
||||
writeln("a >= b returns: " <& a >= b);
|
||||
writeln("compare(a, b) returns: " <& compare(a, b));
|
||||
writeln("compare(lower(a), lower(b)) returns: " <& compare(a, b));
|
||||
end func;
|
||||
|
||||
const proc: main is func
|
||||
begin
|
||||
showComparisons("this", "that");
|
||||
showComparisons("that", "this");
|
||||
showComparisons("THAT", "That");
|
||||
showComparisons("this", "This");
|
||||
showComparisons("this", "this");
|
||||
showComparisons("the", "there");
|
||||
showComparisons("there", "the");
|
||||
end func;
|
||||
Loading…
Add table
Add a link
Reference in a new issue