]> andersk Git - libyaml.git/blame - tests/test-version.c
Complete UTF-8 and UTF-16 decoders.
[libyaml.git] / tests / test-version.c
CommitLineData
cec6fc98
KS
1#include <yaml/yaml.h>
2
3#include <stdlib.h>
4#include <stdio.h>
5#include <assert.h>
6
7int
8main(void)
9{
721c1923
KS
10 int major = -1;
11 int minor = -1;
12 int patch = -1;
cec6fc98
KS
13 char buf[64];
14
15 yaml_get_version(&major, &minor, &patch);
16 sprintf(buf, "%d.%d.%d", major, minor, patch);
17 assert(strcmp(buf, yaml_get_version_string()) == 0);
cec6fc98
KS
18
19 return 0;
20}
This page took 0.051055 seconds and 5 git commands to generate.