namespace is not necessary for tests
This commit is contained in:
parent
61821ed05d
commit
ac4338a57c
@ -1,10 +1,8 @@
|
||||
namespace SernaturTest {
|
||||
using LibSernatur.Misc;
|
||||
using LibSernatur.Misc;
|
||||
|
||||
public static int main (string[] args) {
|
||||
public static int main (string[] args) {
|
||||
assert (Money.format_int (100000) == "$100.000");
|
||||
assert (Money.format_uint (100000) == "$100.000");
|
||||
assert (Money.format_string ("100000") == "$100.000");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -1,11 +1,9 @@
|
||||
namespace SernaturTest {
|
||||
using LibSernatur.Misc;
|
||||
using LibSernatur.Misc;
|
||||
|
||||
public static int main (string[] args) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
namespace SernaturTest {
|
||||
using LibSernatur.Misc;
|
||||
using LibSernatur.Misc;
|
||||
|
||||
public static int main (string[] args) {
|
||||
public static int main (string[] args) {
|
||||
try {
|
||||
Rut rut = new Rut ("18166316-2");
|
||||
assert (rut.get_clean_rut () == "181663162");
|
||||
@ -22,5 +21,4 @@ namespace SernaturTest {
|
||||
error (e.message);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user