package org.openrefine.phonetic.keyers;

import static org.testng.Assert.assertEquals;

import org.testng.annotations.Test;

import com.google.refine.clustering.binning.Keyer;

public class BeiderMorseKeyerTest  {
    
    Keyer keyer = new BeiderMorseKeyer();
    
    @Test
    public void testKey() {
        assertEquals(keyer.key("Alphonse"), "YlfYnzi");
    }
    
    @Test
    public void testAccents() {
        assertEquals(keyer.key("Éléonore"), "ilionor");
    }
    
    @Test
    public void testEmpty() {
        assertEquals(keyer.key(""), "");
    }

}
