#!/bin/sh # # Copyright (c) 2005 Jonas Fonseca # test_description='Test that incompleteness is correctly detected This test checks that the SGML parser correctly finds and reports when a part of the source is incomplete. ' . "$TEST_LIB" test_expect_incomplete () { desc="$1"; shift src="$1"; shift sgml-parser --src "$src" --incomplete >/dev/null test_expect_success "$desc" \ "test $? = 1" } ################################################################ # Check for incompleteness test_expect_incomplete \ 'Check incomplete comment. (I)' \ '