summaryrefslogtreecommitdiff
path: root/src/tests/formula.cpp
blob: 635d73f69b114dd8c197357cc519538d24fa900e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
 *
 * This file is part of the libbu++ library and is released under the
 * terms of the license contained in the file LICENSE.
 */

#include "bu/formula.h"

int main( int argc, char *argv[] )
{
	Bu::Formula<uint32_t> uForm;
	Bu::Formula<double> dForm;

	printf("u: %s = %u\n", argv[1], uForm.run( argv[1] ) );
	printf("d: %s = %f\n", argv[1], dForm.run( argv[1] ) );
}