初始化PHP-Xlswrite扩展

This commit is contained in:
ykxiao
2024-03-05 10:01:08 +08:00
commit 879cf9584d
2483 changed files with 1054962 additions and 0 deletions

View File

@ -0,0 +1,30 @@
/*
* Tests for the libxlsxwriter library.
*
* Copyright 2014-2021, John McNamara, jmcnamara@cpan.org
*
*/
#include "../ctest.h"
#include "../helper.h"
#include "../../../include/xlsxwriter/utility.h"
// Test lxw_strerror() to ensure the error_string array doesn't go out of sync.
CTEST(utility, lxw_strerror) {
ASSERT_STR("No error.",
lxw_strerror(LXW_NO_ERROR));
ASSERT_STR("Error encountered when creating a tmpfile during file assembly.",
lxw_strerror(LXW_ERROR_CREATING_TMPFILE));
ASSERT_STR("Maximum number of worksheet URLs (65530) exceeded.",
lxw_strerror(LXW_ERROR_WORKSHEET_MAX_NUMBER_URLS_EXCEEDED));
ASSERT_STR("Unknown error number.",
lxw_strerror(LXW_MAX_ERRNO));
ASSERT_STR("Unknown error number.",
lxw_strerror(LXW_MAX_ERRNO + 1));
}