Skip to content

Commit

Permalink
further tests in AbstractXbaseEvaluationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Apr 29, 2024
1 parent 45500f7 commit d7c67a3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,15 @@ public abstract class AbstractXbaseEvaluationTest extends Assert {
@Test public void testStringLiteral_03() throws Exception {
assertEvaluatesTo("lite\nr\\al", "'lite\r\nr\\\\al'");
}


@Test public void testStringLiteral_03_Issue_2293_01() throws Exception {
assertEvaluatesTo("lite\nr\\al", "'lite\\nr\\\\al'");
}

@Test public void testStringLiteral_03_Issue_2293_02() throws Exception {
assertEvaluatesTo("lite\r\nr\\al", "'lite\\r\\nr\\\\al'");
}

@Test public void testStringLiteral_04() throws Exception {
assertEvaluatesTo('\n', "{ val char x = '\n' x}");
}
Expand Down
2 changes: 1 addition & 1 deletion org.eclipse.xtext.xbase.testing/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Bundle-ActivationPolicy: lazy
Export-Package: org.eclipse.xtext.xbase.testing;version="2.35.0",
org.eclipse.xtext.xbase.testing.evaluation;version="2.35.0";x-friends:="org.eclipse.xtext.xbase.tests,org.eclipse.xtext.purexbase.tests",
org.eclipse.xtext.xbase.testing.typesystem;version="2.35.0";x-internal:=true,
testdata;version="2.35.0";x-friends:="org.eclipse.xtext.xbase.tests",
testdata;version="2.35.0";x-friends:="org.eclipse.xtext.xbase.tests,org.eclipse.xtend.core.tests",
testdata.a;version="2.35.0";x-internal:=true,
testdata.b;version="2.35.0";x-internal:=true
Import-Package: org.apache.log4j;version="1.2.24"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,15 @@ public abstract class AbstractXbaseEvaluationTest extends Assert {
@Test public void testStringLiteral_03() throws Exception {
assertEvaluatesTo("lite\nr\\al", "'lite\r\nr\\\\al'");
}


@Test public void testStringLiteral_03_Issue_2293_01() throws Exception {
assertEvaluatesTo("lite\nr\\al", "'lite\\nr\\\\al'");
}

@Test public void testStringLiteral_03_Issue_2293_02() throws Exception {
assertEvaluatesTo("lite\r\nr\\al", "'lite\\r\\nr\\\\al'");
}

@Test public void testStringLiteral_04() throws Exception {
assertEvaluatesTo('\n', "{ val char x = '\n' x}");
}
Expand Down

0 comments on commit d7c67a3

Please sign in to comment.