source: josm/trunk/test/unit/org/openstreetmap/josm/tools/I18nTest.groovy@ 7030

Last change on this file since 7030 was 6671, checked in by simon04, 10 years ago

fix #9560 - IllegalArgumentException when color.layer contains "{ }"

File size: 300 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.tools
3
4class 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.