@Test
public void testCurrencies(){
QL.info("testing currencies...");
//Sample Currency - CHF
final CHFCurrency chf = new CHFCurrency();
QL.info("testing correct initialization...");
assertTrue(chf.name().equalsIgnoreCase("Swiss franc"));
assertTrue(chf.code().equalsIgnoreCase("CHF"));
assertEquals(chf.numericCode(),756);
assertTrue(chf.symbol().equalsIgnoreCase("SwF"));
assertTrue(chf.fractionSymbol().equalsIgnoreCase(""));
assertEquals(chf.fractionsPerUnit(),100);
assertEquals(chf.rounding().type(), Rounding.Type.None);
//Note: the initialization of the triangulated currency is a little bit suspicious...
assertTrue(chf.triangulationCurrency().getClass() == Currency.class);
assertTrue(chf.triangulationCurrency().empty());
QL.info("testing overloaded operators....(only class based)");
final EURCurrency euro = new EURCurrency();
final CHFCurrency chf2 = new CHFCurrency();
assertFalse(euro.eq(chf));
assertTrue(euro.ne(chf));
assertFalse(chf2.ne(chf));
assertTrue(chf2.eq(chf));
assertFalse(euro.eq(null));
assertTrue(chf.eq(chf2));
assertTrue(chf.eq(chf));