#!/bin/sh . test/lib.sh begin "Disallows nested formatting" scdoc </dev/null test(8) _hello *world*_ EOF end 1 begin "Ignores underscores in words" scdoc </dev/null test(8) hello_world EOF end 0 begin "Ignores underscores in underlined words" scdoc </dev/null test(8) _hello_world_ EOF end 0 begin "Ignores underscores in bolded words" scdoc </dev/null test(8) *hello_world* EOF end 0 begin "Emits bold text" scdoc </dev/null test(8) hello *world* EOF end 0 begin "Emits underlined text" scdoc </dev/null test(8) hello _world_ EOF end 0 begin "Handles escaped characters" scdoc </dev/null test(8) hello \_world\_ EOF end 0