Last change
on this file since 10103 was 7938, checked in by bastiK, 9 years ago |
add more subversion property svn:eol=native
|
-
Property svn:eol-style
set to
native
|
File size:
300 bytes
|
Rev | Line | |
---|
[6671] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
| 2 | package org.openstreetmap.josm.tools
|
---|
| 3 |
|
---|
| 4 | class I18nTest extends GroovyTestCase {
|
---|
| 5 | void testEscape() {
|
---|
| 6 | def foobar = "{foo'bar}"
|
---|
| 7 | assert I18n.escape(foobar) == "'{'foo''bar'}'"
|
---|
| 8 | assert I18n.tr(I18n.escape(foobar)) == foobar
|
---|
| 9 | }
|
---|
| 10 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.