#
#  PRE: if
#
uint32 test_integer
string dummy_string

test_integer := "%debug(4)"

# Check debug level is now 4
if (!(%debug(3) == 4)) {
	test_fail
}

# Call with NULL arg, should report current level
if (!(%debug(%{dummy_string}) == 3)) {
	test_fail
}

# ...and again
if (!(%debug(%{dummy_string}) == 3)) {
	test_fail
}

# ...and again
if (!(%debug() == 3)) {
	test_fail
}

# ...and again
if (!(%debug() == 3)) {
	test_fail
}

success
