diff options
Diffstat (limited to '')
| -rw-r--r-- | src/tests/daysinmonth.cpp | 16 | 
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 | |||
| 4 | using namespace Bu; | ||
| 5 | |||
| 6 | int 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 | |||
