aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/daysinmonth.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tests/daysinmonth.cpp b/src/tests/daysinmonth.cpp
new file mode 100644
index 0000000..9888844
--- /dev/null
+++ b/src/tests/daysinmonth.cpp
@@ -0,0 +1,16 @@
1#include "bu/sio.h"
2#include "bu/util.h"
3
4using namespace Bu;
5
6int main()
7{
8 for( int j = 0; j < 12; j++ )
9 {
10 sio << "2012-" << j << " = "
11 << getDaysInMonth( j, 2012 ) << sio.nl;
12 }
13
14 return 0;
15}
16