mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-21 06:45:21 -06:00
Add initial support for dynamic arrays in formulas.
Feature request #327
This commit is contained in:
parent
3577fdd9fb
commit
e478365508
18 changed files with 587 additions and 17 deletions
|
|
@ -40,6 +40,7 @@ SRCS += $(wildcard custom/test*.c)
|
|||
SRCS += $(wildcard chartsheet/test*.c)
|
||||
SRCS += $(wildcard vml/test*.c)
|
||||
SRCS += $(wildcard comment/test*.c)
|
||||
SRCS += $(wildcard metadata/test*.c)
|
||||
# End of SRCS
|
||||
|
||||
OBJS = $(patsubst %.c,%.o,$(SRCS))
|
||||
|
|
@ -76,6 +77,7 @@ all :
|
|||
$(Q)$(MAKE) -C chartsheet
|
||||
$(Q)$(MAKE) -C vml
|
||||
$(Q)$(MAKE) -C comment
|
||||
$(Q)$(MAKE) -C metadata
|
||||
# END make all
|
||||
|
||||
clean :
|
||||
|
|
@ -96,6 +98,7 @@ clean :
|
|||
$(Q)$(MAKE) clean -C chartsheet
|
||||
$(Q)$(MAKE) clean -C vml
|
||||
$(Q)$(MAKE) clean -C comment
|
||||
$(Q)$(MAKE) clean -C metadata
|
||||
# END make clean
|
||||
|
||||
|
||||
|
|
|
|||
8
test/unit/metadata/Makefile
Normal file
8
test/unit/metadata/Makefile
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
###############################################################################
|
||||
#
|
||||
# Makefile for libxlsxwriter library.
|
||||
#
|
||||
# Copyright 2014-2015, John McNamara, jmcnamara@cpan.org
|
||||
#
|
||||
|
||||
include ../Makefile.unit
|
||||
15
test/unit/metadata/main.c
Normal file
15
test/unit/metadata/main.c
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Test runner for xmlwriter using ctest.
|
||||
*
|
||||
* Copyright 2014-2021 John McNamara, jmcnamara@cpan.org
|
||||
*
|
||||
*/
|
||||
#define CTEST_MAIN
|
||||
|
||||
#include "../ctest.h"
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
return ctest_main(argc, argv);
|
||||
}
|
||||
|
||||
28
test/unit/metadata/test_metadata_xml_declaration.c
Normal file
28
test/unit/metadata/test_metadata_xml_declaration.c
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Tests for the libxlsxwriter library.
|
||||
*
|
||||
* Copyright 2014-2021, John McNamara, jmcnamara@cpan.org
|
||||
*
|
||||
*/
|
||||
|
||||
#include "../ctest.h"
|
||||
#include "../helper.h"
|
||||
|
||||
#include "xlsxwriter/metadata.h"
|
||||
|
||||
// Test _xml_declaration().
|
||||
CTEST(metadata, xml_declaration) {
|
||||
|
||||
char* got;
|
||||
char exp[] = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
|
||||
FILE* testfile = tmpfile();
|
||||
|
||||
lxw_metadata *metadata = lxw_metadata_new();
|
||||
metadata->file = testfile;
|
||||
|
||||
_metadata_xml_declaration(metadata);
|
||||
|
||||
RUN_XLSX_STREQ(exp, got);
|
||||
|
||||
lxw_metadata_free(metadata);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue