From 3008618e6a65d82cd7c805fa933899b331119e03 Mon Sep 17 00:00:00 2001 From: Panagiotis Kourouklidis <22411884+pkourouklidis@users.noreply.github.com> Date: Tue, 1 Oct 2024 13:08:09 +0100 Subject: [PATCH] String operation contributor tests --- .../tests/scripts/stringOperationContributor.eol | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/org.eclipse.epsilon.eol.staticanalyser.tests/src/org/eclipse/epsilon/eol/staticanalyser/tests/scripts/stringOperationContributor.eol diff --git a/tests/org.eclipse.epsilon.eol.staticanalyser.tests/src/org/eclipse/epsilon/eol/staticanalyser/tests/scripts/stringOperationContributor.eol b/tests/org.eclipse.epsilon.eol.staticanalyser.tests/src/org/eclipse/epsilon/eol/staticanalyser/tests/scripts/stringOperationContributor.eol new file mode 100644 index 000000000..4b6ea4245 --- /dev/null +++ b/tests/org.eclipse.epsilon.eol.staticanalyser.tests/src/org/eclipse/epsilon/eol/staticanalyser/tests/scripts/stringOperationContributor.eol @@ -0,0 +1,9 @@ +/*String*/'foo'.escapeXml(); +/*String*/'foo'.firstToUpperCase(); +/*String*/'foo'.characterAt(0); +/*String*/'foo'.firstToLowerCase(); +/*String*/'foo'.ftuc(); +/*String*/'foo'.ftlc(); +/*Boolean*/'foo'.isSubstringOf('bar'); +/*Sequence*/'foo'.toCharSequence(); +/*String*/'foo'.pad(5,'a',true);