comparison mrjunejune/test/integration_test.c @ 244:b8aa08503378

[tools] Add sandboxed online LaTeX editor Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Mon, 03 Aug 2026 16:56:25 -0700
parents 543df0fe7168
children 667156fcd3e3
comparison
equal deleted inserted replaced
243:823f2a8b16c8 244:b8aa08503378
390 {"/resume", 200, NULL, NULL, NULL, 0}, 390 {"/resume", 200, NULL, NULL, NULL, 0},
391 {"/tools", 200, NULL, NULL, NULL, 0}, 391 {"/tools", 200, NULL, NULL, NULL, 0},
392 {"/tools/markdown_to_html", 200, NULL, NULL, NULL, 0}, 392 {"/tools/markdown_to_html", 200, NULL, NULL, NULL, 0},
393 {"/tools/file_converter", 200, NULL, NULL, NULL, 0}, 393 {"/tools/file_converter", 200, NULL, NULL, NULL, 0},
394 {"/tools/hls_player", 200, NULL, NULL, NULL, 0}, 394 {"/tools/hls_player", 200, NULL, NULL, NULL, 0},
395 {"/tools/latex_editor", 200, NULL, NULL, NULL, 0},
395 {"/talk", 200, NULL, NULL, NULL, 0}, 396 {"/talk", 200, NULL, NULL, NULL, 0},
396 }; 397 };
397 int num_success_tests = sizeof(success_tests) / sizeof(success_tests[0]); 398 int num_success_tests = sizeof(success_tests) / sizeof(success_tests[0]);
398 399
399 TestCase redirect_tests[] = { 400 TestCase redirect_tests[] = {
401 {"/resume/index.html", 301, NULL, NULL, NULL, 0}, 402 {"/resume/index.html", 301, NULL, NULL, NULL, 0},
402 {"/tools/index.html", 301, NULL, NULL, NULL, 0}, 403 {"/tools/index.html", 301, NULL, NULL, NULL, 0},
403 {"/tools/markdown_to_html/index.html", 301, NULL, NULL, NULL, 0}, 404 {"/tools/markdown_to_html/index.html", 301, NULL, NULL, NULL, 0},
404 {"/tools/file_converter/index.html", 301, NULL, NULL, NULL, 0}, 405 {"/tools/file_converter/index.html", 301, NULL, NULL, NULL, 0},
405 {"/tools/hls_player/index.html", 301, NULL, NULL, NULL, 0}, 406 {"/tools/hls_player/index.html", 301, NULL, NULL, NULL, 0},
407 {"/tools/latex_editor/index.html", 301, NULL, NULL, NULL, 0},
406 }; 408 };
407 int num_redirect_tests = sizeof(redirect_tests) / sizeof(redirect_tests[0]); 409 int num_redirect_tests = sizeof(redirect_tests) / sizeof(redirect_tests[0]);
408 410
409 TestCase failure_tests[] = { 411 TestCase failure_tests[] = {
410 {"/nonexistent", 404, NULL, NULL, NULL, 0}, 412 {"/nonexistent", 404, NULL, NULL, NULL, 0},