import 'package:money2/money2.dart';
import 'package:test/test.dart';
test('Create Currency - example 1', () {
// US dollars which have 2 digits after the decimal place
// using the default patttern: 'S0.00'
final usd = Currency.create('USD', 2);
// Create currency using a custom pattern
final usd2 = Currency.create('USD', 2, pattern: r'SCCC 0.00');
/// we can now use the currency to create a Money instance.
final amount = Money.parseWithCurrency(r'$1.25', usd2);
expect(amount.toString(), equals(r'$USD 1.25'));
final Currency euro = Currency.create('EUR', 2,
country: 'European Union',
name: 'European Union Euro');