Permalink
Browse files

anal whitespacing

  • Loading branch information...
1 parent 493200f commit e2673812c591235ef76d8a99973ea2e25ad6038d @rsl committed Mar 18, 2013
@@ -48,4 +48,4 @@ def test_accepts_base_settings_for_string_extensions
end
end
end
-end
+end
@@ -94,4 +94,4 @@ def test_can_translate_using_i18n
assert_equal value, Stringex::Localization.translate(:test_i18n_translation, key)
end
end
-end
+end
@@ -34,4 +34,4 @@ def test_to_html_lite
end
end
end
-end
+end
@@ -130,46 +130,6 @@ def test_convert_accented_html_entities
end
end
- def test_convert_vulgar_fractions
- {
- "¼" => "one fourth",
- "¼" => "one fourth",
- "¼" => "one fourth",
- "½" => "half",
- "½" => "half",
- "½" => "half",
- "¾" => "three fourths",
- "¾" => "three fourths",
- "¾" => "three fourths",
- "" => "one third",
- "⅓" => "one third",
- "" => "two thirds",
- "⅔" => "two thirds",
- "" => "one fifth",
- "⅕" => "one fifth",
- "" => "two fifths",
- "⅖" => "two fifths",
- "" => "three fifths",
- "⅗" => "three fifths",
- "" => "four fifths",
- "⅘" => "four fifths",
- "" => "one sixth",
- "⅙" => "one sixth",
- "" => "five sixths",
- "⅚" => "five sixths",
- "" => "one eighth",
- "⅛" => "one eighth",
- "" => "three eighths",
- "⅜" => "three eighths",
- "" => "five eighths",
- "⅝" => "five eighths",
- "" => "seven eighths",
- "⅞" => "seven eighths"
- }.each do |entitied, plain|
- assert_equal plain, entitied.convert_vulgar_fractions
- end
- end
-
def test_localized_vulgar_fractions_conversion
Stringex::Localization.backend = :internal
Stringex::Localization.store_translations :de, :vulgar_fractions, {
@@ -186,19 +146,6 @@ def test_localized_vulgar_fractions_conversion
end
end
- def test_convert_miscellaneous_html_entities
- {
- "America™" => "America(tm)",
- "Tea & Sympathy" => "Tea and Sympathy",
- "To be continued…" => "To be continued...",
- "Foo Bar" => "Foo Bar",
- "100£" => "100 pound",
- "35°" => "35 degrees"
- }.each do |entitied, plain|
- assert_equal plain, entitied.convert_miscellaneous_html_entities
- end
- end
-
def test_localized_html_entities_conversion
Stringex::Localization.backend = :internal
Stringex::Localization.store_translations :de, :html_entities, {
@@ -227,25 +174,6 @@ def test_convert_smart_punctuation
end
end
- def test_convert_miscellaneous_characters
- {
- "Foo & bar make foobar" => "Foo and bar make foobar",
- "Breakdown #9" => "Breakdown number 9",
- "foo@bar.com" => "foo at bar dot com",
- "100% of yr love" => "100 percent of yr love",
- "Kisses are $3.25 each" => "Kisses are 3 dollars 25 cents each",
- "That CD is £3.25 plus tax" => "That CD is 3 pounds 25 pence plus tax",
- "This CD is ¥1000 instead" => "This CD is 1000 yen instead",
- "In Europe you can buy it for €2 or €4.10" => "In Europe you can buy it for 2 euros or 4 euros 10 cents",
- "Food+Drink" => "Food plus Drink",
- "this & that #2 @ bla.bla for $3" => "this and that number 2 at bla dot bla for 3 dollars",
- "three + four ÷ 40 ° fahrenheit... end" => "three plus four divide 40 degrees fahrenheit dot dot dot end",
- "£4 but ¥5 * 100% = two" => "4 pounds but 5 yen star 100 percent equals two"
- }.each do |misc, plain|
- assert_equal plain, misc.convert_miscellaneous_characters
- end
- end
-
def test_localized_character_conversions
Stringex::Localization.backend = :internal
Stringex::Localization.store_translations :de, :characters, {
View
@@ -1,2 +1,2 @@
require 'test/unit'
-$: << File.join(File.expand_path(File.dirname(__FILE__)), '../lib')
+$: << File.join(File.expand_path(File.dirname(__FILE__)), '../lib')

0 comments on commit e267381

Please sign in to comment.