#!/usr/bin/env raku # --------------------------------------------------------------- # SPDX-License-Identifier: GPL-3.0-or-later # --------------------------------------------------------------- # Test File : test-parser.rakutest # Test Authors : Aoran Zeng # Created On : <2025-07-15> # Last Modified : <2025-07-16> # --------------------------------------------------------------- use lib '../lib'; use Parser; my $test-file1 = './fixture/test-hierarchy-with-root.md'; my $test-file2 = './fixture/test-hierarchy-without-root.md'; my $parser1 = Parser::Parser.new($test-file1); my $parser2 = Parser::Parser.new($test-file2); $parser1.parse(); $parser2.parse(); # 测试两个文件 $parser1.debug-print-summary(); say ""; $parser2.debug-print-summary();