ArmenianNumbering { public static String toArmenian(int number) { StringBuilder result = new StringBuilder(); for (int i = DIGITS.length - 1; i >= 0; i--) { ArmenianDigit curDigit = DIGITS[i]; while (number >= curDigit.value) { result.append(curDigit.digit); number -= curDigit.value; } } return result.toString(); } private  ArmenianNumbering(); static String toArmenian(int number);  }
@Test public void negativeToArmenianTest() { Assert.assertEquals("", ArmenianNumbering.toArmenian(-10)); }
@Test public void zeroToArmenianTest() { Assert.assertEquals("", ArmenianNumbering.toArmenian(0)); }
@Test public void toArmenianTest() { Assert.assertEquals("\u0554\u054B\u0542\u0539", ArmenianNumbering.toArmenian(9999)); Assert.assertEquals("\u0552\u054A\u0540\u0534", ArmenianNumbering.toArmenian(7874)); }
@Test public void numberGreaterThan9999toArmenianTest() { Assert.assertEquals("\u0554\u0554\u0554\u0554\u0554\u0554\u0554\u0532", ArmenianNumbering.toArmenian(63002)); }