diff options
author | Kirill Simonov <xi@resolvent.net> | 2006-05-21 14:58:32 +0000 |
---|---|---|
committer | Kirill Simonov <xi@resolvent.net> | 2006-05-21 14:58:32 +0000 |
commit | 721c1923e49cc10cec9821d0877d94237265ca6f (patch) | |
tree | 6cb0f90ea5b674ef298fe24559856d575d55adb8 /tests | |
parent | cec6fc98ebecc208edc30a900e6ab195e7c21851 (diff) | |
download | libyaml-hg-721c1923e49cc10cec9821d0877d94237265ca6f.tar.gz |
Add doxygen support.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 2 | ||||
-rw-r--r-- | tests/test-version.c | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 75e52f9..ea70ba5 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,4 +1,4 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -LDADD = $(top_srcdir)/src/libyaml.la +LDADD = $(top_builddir)/src/libyaml.la TESTS = test-version check_PROGRAMS = test-version diff --git a/tests/test-version.c b/tests/test-version.c index 51b75f4..578d678 100644 --- a/tests/test-version.c +++ b/tests/test-version.c @@ -7,17 +7,14 @@ int main(void) { - int major, minor, patch; + int major = -1; + int minor = -1; + int patch = -1; char buf[64]; yaml_get_version(&major, &minor, &patch); sprintf(buf, "%d.%d.%d", major, minor, patch); assert(strcmp(buf, yaml_get_version_string()) == 0); - assert(yaml_check_version(major+1, minor, patch) == 0); - assert(yaml_check_version(major, minor+1, patch) == 0); - assert(yaml_check_version(major, minor, patch+1) == 1); - assert(yaml_check_version(major, minor, patch) == 1); - assert(yaml_check_version(major, minor, patch-1) == 0); return 0; } |