Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/twine.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSebastian Celis <sebastian@sebastiancelis.com>2018-01-24 17:56:04 +0300
committerSebastian Celis <sebastian@sebastiancelis.com>2018-01-24 17:56:04 +0300
commitc6b3c9c875f1fffcea8c0e7535906e6ea25c501f (patch)
tree23316df88d59d679373c9473a4407b8a89fa76ea /test
parent72098611bae168d38f422af14f2a57d2ea111c10 (diff)
Fix an error caused by combining %@ with other placeholders
Fixes #234
Diffstat (limited to 'test')
-rw-r--r--test/test_placeholders.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_placeholders.rb b/test/test_placeholders.rb
index 3fcd5a6..abc3ab2 100644
--- a/test/test_placeholders.rb
+++ b/test/test_placeholders.rb
@@ -79,6 +79,10 @@ class PlaceholderTest < TwineTest
to_android("some %d second %2$f")
end
end
+
+ def test_complicated_float_placeholders
+ assert_equal "%1$.0f%2$s (apparent: %3$.0f)", to_android("%.0f%@ (apparent: %.0f)")
+ end
end
class FromAndroid < PlaceholderTest