12 lines
332 B
Vala
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;
|
|
}
|
|
}
|