#!/usr/bin/env qore
# -*- mode: qore; indent-tabs-mode: nil -*-

%new-style
%enable-all-warnings
%require-types
%strict-args

%requires ../../../../../qlib/QUnit.qm

%requires ./ReExportTest.qm

%exec-class ReExportTest

class ReExportTest inherits QUnit::Test {
    constructor() : Test("ReExportTest", "1.0") {
        addTestCase("ReExport Test", \test());

        set_return_value(main());
    }

    test() {
        assertEq(Type::Int, AV.type());
        assertEq(Type::Int, BV.type());

        if (Xml) {
            assertEq("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<a>1</a>\n", call_function("make_xml", ("a": 1)));
        }
    }
}
