Skip to content

Commit be7046b

Browse files
committed
Migrate partest jvm/xml04embed.scala test to JUnit.
1 parent dcbf212 commit be7046b

File tree

3 files changed

+23
-13
lines changed

3 files changed

+23
-13
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package scala.xml
2+
3+
import org.junit.Test
4+
import org.junit.Ignore
5+
import org.junit.runner.RunWith
6+
import org.junit.runners.JUnit4
7+
import org.junit.Assert.assertTrue
8+
import org.junit.Assert.assertFalse
9+
import org.junit.Assert.assertEquals
10+
11+
class XMLEmbeddingTest {
12+
13+
@Test
14+
def basic: Unit = {
15+
val ya = <x>{{</x>
16+
assertEquals("{", ya.text)
17+
val ua = <x>}}</x>
18+
assertEquals("}", ua.text)
19+
val za = <x>{{}}{{}}{{}}</x>
20+
assertEquals("{}{}{}", za.text)
21+
}
22+
23+
}

test/files/jvm/xml04embed.check

Lines changed: 0 additions & 3 deletions
This file was deleted.

test/files/jvm/xml04embed.scala

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)