import net.html fn test_nil() { mut doc := html.parse('') footer := doc.get_tags_by_class_name('Box-footer')[0] hrefs := footer.get_tag_by_class_name('Truncate') println(hrefs) res := '${hrefs}' assert res == '&Option(&nil)' } fn test_non_nil() { mut doc := html.parse('') footer := doc.get_tags_by_class_name('Box-footer')[0] hrefs := footer.get_tag_by_class_name('Truncate') println(hrefs) res := '${hrefs}' assert res == '&Option(
abc
)' }