test/test_variants.rb in sportdb-config-0.4.0 vs test/test_variants.rb in sportdb-config-0.4.1

- old
+ new

@@ -10,10 +10,16 @@ class TestVariants < MiniTest::Test def variants( name ) SportDb::Import::Variant.find( name ); end + def test_downcase + ## todo/fix: use our own downcase for normalize - why? why not? + ## assert_equal 'äöü', 'ÄÖÜ'.downcase + end + + def test_de assert_equal [], variants( 'Augsburg' ) assert_equal ['Koln', 'Koeln'], variants( 'Köln' ) assert_equal ['1. FC Koln', '1. FC Koeln'], variants( '1. FC Köln' ) @@ -25,7 +31,15 @@ assert_equal ['Rot-Weiss Oberhausen'], variants( 'Rot-Weiß Oberhausen' ) assert_equal ['St. Polten', 'St. Poelten'], variants( 'St. Pölten' ) end + def test_es + assert_equal [], variants( 'Madrid' ) + + assert_equal ['Atletico Madrid'], variants( 'Atlético Madrid' ) + assert_equal ['Ecija Balompie'], variants( 'Écija Balompié' ) + assert_equal ['La Coruna'], variants( 'La Coruña' ) + assert_equal ['Almeria'], variants( 'Almería' ) + end end # class TestVariants