Initial sese-controller application
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#include <assert.h>
|
||||
#include "ota_version.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int order;
|
||||
assert(ota_version_compare("0.5.0", "0.4.9", &order) && order > 0);
|
||||
assert(ota_version_compare("1.2.3", "1.2.3", &order) && order == 0);
|
||||
assert(ota_version_compare("1.2.3", "1.3.0", &order) && order < 0);
|
||||
assert(!ota_version_compare("1.2", "1.3.0", &order));
|
||||
assert(!ota_version_compare("1.2.3x", "1.3.0", &order));
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user