16 lines
378 B
Vala
16 lines
378 B
Vala
using LibSernatur.Misc;
|
|
|
|
void add_money_tests () {
|
|
Test.add_func ("/sernatur/test/money", () => {
|
|
assert (Money.format_int (100000) == "$100.000");
|
|
assert (Money.format_uint (100000) == "$100.000");
|
|
assert (Money.format_string ("100000") == "$100.000");
|
|
});
|
|
}
|
|
|
|
int main (string[] args) {
|
|
Test.init (ref args);
|
|
add_money_tests ();
|
|
return Test.run ();
|
|
}
|