sernatur/test/percentage.vala
2019-01-15 16:39:41 -03:00

12 lines
332 B
Vala

namespace SernaturTest {
using LibSernatur.Misc;
public static int main (string[] args) {
assert (Percentage.format_float ((float) 0.43) == "43%");
assert (Percentage.format_float ((float) 1) == "100%");
assert (Percentage.format_double (0.43) == "43%");
assert (Percentage.format_double (1) == "100%");
return 0;
}
}