/*****************************************************************************
 * Test cases for libxlsxwriter.
 *
 * Test to compare output against Excel files.
 *
 * Copyright 2014-2019, John McNamara, jmcnamara@cpan.org
 *
 */

#include "xlsxwriter.h"

int main() {

    lxw_workbook  *workbook  = workbook_new("test_hyperlink35.xlsx");
    lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL);

    lxw_image_options options1 = {.url = "https://github.com/foo"};
    lxw_image_options options2 = {.url = "https://github.com/bar"};
    lxw_image_options options3 = {.url = "https://github.com/baz"};
    lxw_image_options options4 = {.url = "https://github.com/boo"};

    worksheet_insert_image_opt(worksheet, CELL("A1"), "images/blue.png",   &options1);
    worksheet_insert_image_opt(worksheet, CELL("B3"), "images/red.jpg",    &options2);
    worksheet_insert_image_opt(worksheet, CELL("D5"), "images/yellow.jpg", &options3);
    worksheet_insert_image_opt(worksheet, CELL("F9"), "images/grey.png",   &options4);

    return workbook_close(workbook);
}
