//! Doctype tests for Pugz engine const helper = @import("helper.zig"); const expectOutput = helper.expectOutput; // ───────────────────────────────────────────────────────────────────────────── // Doctype tests // ───────────────────────────────────────────────────────────────────────────── test "Doctype default (html)" { try expectOutput("doctype", .{}, ""); } test "Doctype html explicit" { try expectOutput("doctype html", .{}, ""); } test "Doctype xml" { try expectOutput("doctype xml", .{}, ""); } test "Doctype transitional" { try expectOutput( "doctype transitional", .{}, "", ); } test "Doctype strict" { try expectOutput( "doctype strict", .{}, "", ); } test "Doctype frameset" { try expectOutput( "doctype frameset", .{}, "", ); } test "Doctype 1.1" { try expectOutput( "doctype 1.1", .{}, "", ); } test "Doctype basic" { try expectOutput( "doctype basic", .{}, "", ); } test "Doctype mobile" { try expectOutput( "doctype mobile", .{}, "", ); } test "Doctype plist" { try expectOutput( "doctype plist", .{}, "", ); } test "Doctype custom" { try expectOutput( "doctype html PUBLIC \"-//W3C//DTD HTML 4.01//EN\"", .{}, "", ); } test "Doctype with html content" { try expectOutput( \\doctype html \\html \\ head \\ title Hello \\ body \\ p World , .{}, \\ \\ \\ \\ Hello \\ \\ \\

World

\\ \\ ); }