# Set debug to something high, recording the old level
uint32 test_integer

test_integer := %debug(4)

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

# Set debug back to the original level
%debug(%{test_integer})

# Read out the current debug level to verify it changed
if (!(%debug(%{test_integer}) == "%{test_integer}")) {
	test_fail
}

# Check for 'splosions
"%{control.Password.Cleartext || control.User-Name}"
"%{control.User-Name || control.Password.Cleartext}"

if (control.Password.Cleartext =~ /(h)(e)(l)(l)(o)/) {
	"%{0}"
	"%{1}"
	"%{2}"
	"%{3}"
	"%{4}"
	"%{5}"
	"%{6}"
}

success
